mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 07:09:15 +01:00
Fix infinite loops in connection logic
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user