From 5a35de6bca4385431905be5a59f004f7bfd2896c Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Fri, 20 Dec 2019 15:20:14 +0200 Subject: [PATCH] Fix sendOnionPeerObj() broken in 9923e97 --- src/class_singleWorker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/class_singleWorker.py b/src/class_singleWorker.py index a275b79d..d035c092 100644 --- a/src/class_singleWorker.py +++ b/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