aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2012-05-13 14:11:53 +0200
committerPieter Wuille <[email protected]>2012-05-13 14:22:15 +0200
commitaf4006b3f50b571c228987d3fe93998a64b50de5 (patch)
tree3919ffdbd517d96deba31b17ec8dad9e4dcb357e /src/net.cpp
parentMerge pull request #1178 from laanwj/2012_05_move_startonsystemstartup (diff)
downloaddiscoin-af4006b3f50b571c228987d3fe93998a64b50de5.tar.xz
discoin-af4006b3f50b571c228987d3fe93998a64b50de5.zip
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 c8cb17091..82a215c68 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);
{