From 906f35e25e3595af1c666fc4ea22016f32004636 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Wed, 3 Jul 2024 01:57:51 +0300 Subject: [PATCH] Don't advertise self peer if reported IP is 127.0.0.1 --- minode/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minode/connection.py b/minode/connection.py index b7f9a75..9996f5f 100644 --- a/minode/connection.py +++ b/minode/connection.py @@ -398,7 +398,7 @@ class ConnectionBase(threading.Thread): shared.node_pool.add((self.host, self.port)) elif self.network == '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.services, version.host, shared.listening_port)) if self.server: