diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-05-13 14:11:53 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-05-13 14:22:15 +0200 |
commit | af4006b3f50b571c228987d3fe93998a64b50de5 (patch) | |
tree | 3919ffdbd517d96deba31b17ec8dad9e4dcb357e | |
parent | b07ea7c74bc8ad338588421371dbdb02d5351496 (diff) |
Enforce -nodiscover better
-rw-r--r-- | src/net.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net.cpp b/src/net.cpp index c8cb17091f..82a215c68a 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -211,6 +211,9 @@ bool AddLocal(const CService& addr, int nScore) if (!addr.IsRoutable()) return false; + if (!GetBoolArg("-discover", true) && nScore < LOCAL_MANUAL) + return false; + printf("AddLocal(%s,%i)\n", addr.ToString().c_str(), nScore); { |