aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2012-05-13 14:11:53 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2012-05-13 14:22:15 +0200
commitaf4006b3f50b571c228987d3fe93998a64b50de5 (patch)
tree3919ffdbd517d96deba31b17ec8dad9e4dcb357e /src/net.cpp
parentb07ea7c74bc8ad338588421371dbdb02d5351496 (diff)
downloadbitcoin-af4006b3f50b571c228987d3fe93998a64b50de5.tar.xz
Enforce -nodiscover better
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp3
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);
{