From ee12985135f58e00ecac80bb3fb361e085f65621 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Wed, 20 Feb 2019 14:09:44 -0500 Subject: [PATCH] dont ping outselves --- lbrynet/dht/node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/dht/node.py b/lbrynet/dht/node.py index d87a8c425..f1d1a9574 100644 --- a/lbrynet/dht/node.py +++ b/lbrynet/dht/node.py @@ -130,7 +130,7 @@ class Node: if known_node_urls: for host, port in known_node_urls: address = await resolve_host(host, port, proto='udp') - if (address, port) not in known_node_addresses: + if (address, port) not in known_node_addresses and address != self.protocol.external_ip: known_node_addresses.append((address, port)) url_to_addr[address] = host