Do not advertise our IP address after incoming I2P connection

This commit is contained in:
TheKysek 2017-07-12 09:12:18 +02:00
parent ca5a489d2c
commit 708e2db22c
No known key found for this signature in database
GPG Key ID: 50D9AF00D0B1C497

View File

@ -270,7 +270,8 @@ class Connection(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'))
shared.address_advertise_queue.put(structure.NetAddr(shared.services, version.host, shared.listening_port)) if self.network == 'ip':
shared.address_advertise_queue.put(structure.NetAddr(shared.services, version.host, shared.listening_port))
if self.server: if self.server:
if self.network == 'ip': if self.network == 'ip':
self.send_queue.put(message.Version(self.host, self.port)) self.send_queue.put(message.Version(self.host, self.port))