From 22115891f2dbd904d3254d8a126322cde2ddf912 Mon Sep 17 00:00:00 2001 From: Arinerron Date: Fri, 9 Nov 2018 23:22:27 -0800 Subject: [PATCH] Fix annoying peer spamming --- onionr/communicator2.py | 2 +- onionr/static-data/bootstrap-nodes.txt | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/onionr/communicator2.py b/onionr/communicator2.py index 5145abb5..41a239eb 100755 --- a/onionr/communicator2.py +++ b/onionr/communicator2.py @@ -324,7 +324,7 @@ class OnionrCommunicatorDaemon: def addBootstrapListToPeerList(self, peerList): '''Add the bootstrap list to the peer list (no duplicates)''' for i in self._core.bootstrapList: - if i not in peerList and i not in self.offlinePeers and i != self._core.hsAddress: + if i not in peerList and i not in self.offlinePeers and i != self._core.hsAddress and len(str(i).strip()) > 0: peerList.append(i) self._core.addAddress(i) diff --git a/onionr/static-data/bootstrap-nodes.txt b/onionr/static-data/bootstrap-nodes.txt index 67459d90..e69de29b 100644 --- a/onionr/static-data/bootstrap-nodes.txt +++ b/onionr/static-data/bootstrap-nodes.txt @@ -1,3 +0,0 @@ -onionragxuddecmg.onion -dgyllprmtmym4gbk.onion -eczfevdpirhvbniy.onion