Fix sendOnionPeerObj() broken in 9923e97
This commit is contained in:
parent
c79636863d
commit
5a35de6bca
|
@ -467,8 +467,8 @@ class singleWorker(StoppableThread):
|
|||
def sendOnionPeerObj(self, peer=None):
|
||||
"""Send onionpeer object representing peer"""
|
||||
if not peer: # find own onionhostname
|
||||
for peer_ in state.ownAddresses:
|
||||
if peer_.host.endswith('.onion'):
|
||||
for peer in state.ownAddresses:
|
||||
if peer.host.endswith('.onion'):
|
||||
break
|
||||
else:
|
||||
return
|
||||
|
|
Reference in New Issue
Block a user