Fix sendOnionPeerObj() broken in 9923e97 #1588

Merged
g1itch merged 1 commits from broken into v0.6 2019-12-24 11:35:18 +01:00

View File

@ -467,8 +467,8 @@ class singleWorker(StoppableThread):
def sendOnionPeerObj(self, peer=None): def sendOnionPeerObj(self, peer=None):
"""Send onionpeer object representing peer""" """Send onionpeer object representing peer"""
if not peer: # find own onionhostname if not peer: # find own onionhostname
for peer_ in state.ownAddresses: for peer in state.ownAddresses:
if peer_.host.endswith('.onion'): if peer.host.endswith('.onion'):
break break
else: else:
return return