mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-03-13 06:01:45 +00:00
Enforce -nodiscover better
This commit is contained in:
parent
b07ea7c74b
commit
af4006b3f5
@ -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…
x
Reference in New Issue
Block a user