Browse Source

Fix sendOnionPeerObj() broken in 9923e97

v0.6
Dmitri Bogomolov 3 years ago
parent
commit
5a35de6bca
Signed by untrusted user: g1itch GPG Key ID: 720A756F18DEED13
  1. 4
      src/class_singleWorker.py

4
src/class_singleWorker.py

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

Loading…
Cancel
Save