From 9a35619a0b77e4ca2b06783882c177ec028fdc40 Mon Sep 17 00:00:00 2001 From: Arinerron Date: Thu, 24 Oct 2019 23:52:26 -0700 Subject: [PATCH] Fix whitespace issue in bootstrap --- onionr/communicatorutils/connectnewpeers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/onionr/communicatorutils/connectnewpeers.py b/onionr/communicatorutils/connectnewpeers.py index 8ce633f5..ccfa222d 100755 --- a/onionr/communicatorutils/connectnewpeers.py +++ b/onionr/communicatorutils/connectnewpeers.py @@ -55,6 +55,8 @@ def connect_new_peer_to_communicator(comm_inst, peer='', useBootstrap=False): bootstrappeers.add_bootstrap_list_to_peer_list(comm_inst, peerList) for address in peerList: + address = address.strip() + if not config.get('tor.v3onions') and len(address) == 62: continue # Don't connect to our own address @@ -89,4 +91,4 @@ def connect_new_peer_to_communicator(comm_inst, peer='', useBootstrap=False): # Mark a peer as tried if they failed to respond to ping tried.append(address) logger.debug('Failed to connect to %s: %s ' % (address, ret)) - return retData \ No newline at end of file + return retData