mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
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