Fix whitespace issue in bootstrap

This commit is contained in:
Arinerron 2019-10-24 23:52:26 -07:00
parent 9c1cb1a7e1
commit 9a35619a0b

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) bootstrappeers.add_bootstrap_list_to_peer_list(comm_inst, peerList)
for address in peerList: for address in peerList:
address = address.strip()
if not config.get('tor.v3onions') and len(address) == 62: if not config.get('tor.v3onions') and len(address) == 62:
continue continue
# Don't connect to our own address # 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 # Mark a peer as tried if they failed to respond to ping
tried.append(address) tried.append(address)
logger.debug('Failed to connect to %s: %s ' % (address, ret)) logger.debug('Failed to connect to %s: %s ' % (address, ret))
return retData return retData