Don't advertise self peer if reported IP is 127.0.0.1
This commit is contained in:
parent
971b661d3c
commit
1dac9f5d3f
|
@ -398,7 +398,7 @@ class ConnectionBase(threading.Thread):
|
||||||
shared.node_pool.add((self.host, self.port))
|
shared.node_pool.add((self.host, self.port))
|
||||||
elif self.network == 'i2p':
|
elif self.network == 'i2p':
|
||||||
shared.i2p_node_pool.add((self.host, 'i2p'))
|
shared.i2p_node_pool.add((self.host, 'i2p'))
|
||||||
if self.network == 'ip':
|
if self.network == 'ip' and version.host != '127.0.0.1':
|
||||||
shared.address_advertise_queue.put(structure.NetAddr(
|
shared.address_advertise_queue.put(structure.NetAddr(
|
||||||
shared.services, version.host, shared.listening_port))
|
shared.services, version.host, shared.listening_port))
|
||||||
if self.server:
|
if self.server:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user