Don't add_peer to ourself
This commit is contained in:
parent
8236aaf234
commit
f04ff6f5b3
@ -113,10 +113,12 @@ class PeerSession(JSONSession):
|
||||
|
||||
self.peer_mgr.add_peers(peers)
|
||||
|
||||
# Announce ourself if not present. Don't if disabled or we
|
||||
# are a non-public IP address.
|
||||
# Announce ourself if not present. Don't if disabled, we
|
||||
# are a non-public IP address, or to ourselves.
|
||||
if not self.peer_mgr.env.peer_announce:
|
||||
return
|
||||
if self.peer in self.peer_mgr.myselves:
|
||||
return
|
||||
my = self.peer_mgr.my_clearnet_peer()
|
||||
if not my.is_public:
|
||||
return
|
||||
|
||||
Loading…
Reference in New Issue
Block a user