mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-11 15:27:57 +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())
|
||||
return false;
|
||||
|
||||
if (!GetBoolArg("-discover", true) && nScore < LOCAL_MANUAL)
|
||||
return false;
|
||||
|
||||
printf("AddLocal(%s,%i)\n", addr.ToString().c_str(), nScore);
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user