Fix filter in TCPConnection.sendAddr() preventing from sending IPv6 addresses

This commit is contained in:
Lee Miller 2022-08-30 02:51:32 +03:00
parent 6cf2340f0f
commit 72fc95b806
Signed by untrusted user: lee.miller
GPG Key ID: 4F97A5EA88F4AB63

View File

@ -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(