From 72fc95b806d9ae5b326d08e6937a57f5ef0a805a Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Tue, 30 Aug 2022 02:51:32 +0300 Subject: [PATCH] Fix filter in TCPConnection.sendAddr() preventing from sending IPv6 addresses --- src/network/tcp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/tcp.py b/src/network/tcp.py index c02d1ef5..b18080c9 100644 --- a/src/network/tcp.py +++ b/src/network/tcp.py @@ -194,7 +194,7 @@ class TCPConnection(BMProto, TLSDispatcher): (k, v) for k, v in nodes.iteritems() if v["lastseen"] > int(time.time()) - maximumAgeOfNodesThatIAdvertiseToOthers - and v["rating"] >= 0 and len(k.host) <= 22 + and v["rating"] >= 0 and not k.host.endswith('.onion') ] # sent 250 only if the remote isn't interested in it elemCount = min(