aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2012-05-13 15:11:51 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2012-05-13 15:11:51 +0200
commit1653f97c8f3c37cd96e03cf397c31c5caf81af08 (patch)
tree61d33a116367070016b6ea33ff4b63e3d36b1e64 /src/net.cpp
parent9fc0a15cd4b03203a81944766b2c882a6266cb59 (diff)
Do not consider blocked networks local
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 82a215c68a..698aa91de1 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -214,6 +214,9 @@ bool AddLocal(const CService& addr, int nScore)
if (!GetBoolArg("-discover", true) && nScore < LOCAL_MANUAL)
return false;
+ if (!IsLimited(addr))
+ return false;
+
printf("AddLocal(%s,%i)\n", addr.ToString().c_str(), nScore);
{