Don't send private ip addresses on pex
This commit is contained in:
parent
a6f86329c5
commit
c2edbb30b5
5 changed files with 28 additions and 5 deletions
|
@ -292,7 +292,7 @@ class FileRequest(object):
|
|||
added += 1
|
||||
|
||||
# Send back peers that is not in the sent list and connectable (not port 0)
|
||||
packed_peers = helper.packPeers(site.getConnectablePeers(params["need"], got_peer_keys))
|
||||
packed_peers = helper.packPeers(site.getConnectablePeers(params["need"], got_peer_keys, allow_private=False))
|
||||
|
||||
if added:
|
||||
site.worker_manager.onPeers()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue