Correct the condition for publishing onion peer

This commit is contained in:
Lee Miller 2023-11-20 00:35:39 +02:00
parent 013da37b9b
commit 34e3ba7147
Signed by: lee.miller
GPG Key ID: 4F97A5EA88F4AB63

View File

@ -294,7 +294,7 @@ class Manager(threading.Thread):
@staticmethod @staticmethod
def publish_onion_peer(): def publish_onion_peer():
if shared.tor: if shared.onion_hostname:
logging.info('Publishing our onion peer') logging.info('Publishing our onion peer')
obj = structure.OnionPeer( obj = structure.OnionPeer(
shared.onion_hostname, shared.listening_port).to_object() shared.onion_hostname, shared.listening_port).to_object()