Enforce -nodiscover better
This commit is contained in:
parent
b07ea7c74b
commit
af4006b3f5
1 changed files with 3 additions and 0 deletions
|
@ -211,6 +211,9 @@ bool AddLocal(const CService& addr, int nScore)
|
||||||
if (!addr.IsRoutable())
|
if (!addr.IsRoutable())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (!GetBoolArg("-discover", true) && nScore < LOCAL_MANUAL)
|
||||||
|
return false;
|
||||||
|
|
||||||
printf("AddLocal(%s,%i)\n", addr.ToString().c_str(), nScore);
|
printf("AddLocal(%s,%i)\n", addr.ToString().c_str(), nScore);
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue