Enforce -nodiscover better

This commit is contained in:
Pieter Wuille 2012-05-13 14:11:53 +02:00
parent b07ea7c74b
commit af4006b3f5
1 changed files with 3 additions and 0 deletions

View File

@ -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);
{