mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-13 03:30:42 +02:00
net: Allow AddLocal of Tor addresses even if we cannot reach Tor outbound
This commit is contained in:
parent
fffb6838ed
commit
a55f3d33f1
@ -273,7 +273,8 @@ bool AddLocal(const CService& addr_, int nScore)
|
|||||||
if (!fDiscover && nScore < LOCAL_MANUAL)
|
if (!fDiscover && nScore < LOCAL_MANUAL)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!g_reachable_nets.Contains(addr))
|
// IPv4 and IPv6 cannot be connected to unless their networks are reachable, but Tor is not necessarily bidirectional
|
||||||
|
if (!(g_reachable_nets.Contains(addr) || addr.IsTor()))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
LogPrintf("AddLocal(%s,%i)\n", addr.ToStringAddrPort(), nScore);
|
LogPrintf("AddLocal(%s,%i)\n", addr.ToStringAddrPort(), nScore);
|
||||||
|
Loading…
Reference in New Issue
Block a user