mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Fix infinite loops in connection logic
This commit is contained in:
parent
f39ab4c8d0
commit
f161a2c211
2 changed files with 8 additions and 2 deletions
|
|
@ -357,7 +357,7 @@ bool AppInit2()
|
|||
SoftSetBoolArg("-listen", true);
|
||||
}
|
||||
|
||||
if (mapArgs.count("-connect")) {
|
||||
if (mapArgs.count("-connect") && mapMultiArgs["-connect"].size() > 0) {
|
||||
// when only connecting to trusted nodes, do not seed via DNS, or listen by default
|
||||
SoftSetBoolArg("-dnsseed", false);
|
||||
SoftSetBoolArg("-listen", false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue