Fix whitespace issue in bootstrap

This commit is contained in:
Arinerron 2019-10-24 23:52:26 -07:00
parent 9c1cb1a7e1
commit 9a35619a0b
1 changed files with 3 additions and 1 deletions

View File

@ -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
return retData