From af4006b3f50b571c228987d3fe93998a64b50de5 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Sun, 13 May 2012 14:11:53 +0200 Subject: [PATCH] Enforce -nodiscover better --- src/net.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/net.cpp b/src/net.cpp index c8cb1709..82a215c6 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); {