diff options
| author | Pieter Wuille <[email protected]> | 2012-08-21 17:32:04 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-08-22 13:35:33 +0200 |
| commit | f161a2c2114cd7d950248ce75a91ba1923e9abb1 (patch) | |
| tree | c0a36b5585a4d8b490324e8c3dc575d3cee146da /src/init.cpp | |
| parent | Merge branch 'testdata' of git://github.com/TheBlueMatt/bitcoin (diff) | |
| download | discoin-f161a2c2114cd7d950248ce75a91ba1923e9abb1.tar.xz discoin-f161a2c2114cd7d950248ce75a91ba1923e9abb1.zip | |
Fix infinite loops in connection logic
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index 7322b23ea..1a1e31c2f 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -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); |