From 1dac9f5d3f9df58e0c9c7e154c22a35c4fcfb1ee Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Mon, 8 Jul 2024 01:43:56 +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: