Fix filter in TCPConnection.sendAddr() preventing from sending IPv6 addresses
This commit is contained in:
parent
6cf2340f0f
commit
72fc95b806
|
@ -194,7 +194,7 @@ class TCPConnection(BMProto, TLSDispatcher):
|
||||||
(k, v) for k, v in nodes.iteritems()
|
(k, v) for k, v in nodes.iteritems()
|
||||||
if v["lastseen"] > int(time.time())
|
if v["lastseen"] > int(time.time())
|
||||||
- maximumAgeOfNodesThatIAdvertiseToOthers
|
- 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
|
# sent 250 only if the remote isn't interested in it
|
||||||
elemCount = min(
|
elemCount = min(
|
||||||
|
|
Reference in New Issue
Block a user