Enforce -nodiscover better
This commit is contained in:
@@ -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);
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user