From c342fb01564fc54ba53477f3684b09fdcaabb7a6 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Thu, 22 Aug 2024 05:28:11 +0300 Subject: [PATCH] Don't start the tor service with --no-incoming if there is a system one --- minode/main.py | 2 +- minode/tor.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/minode/main.py b/minode/main.py index f6dcee0..c5985ad 100644 --- a/minode/main.py +++ b/minode/main.py @@ -286,7 +286,7 @@ def main(): tor = None else: if not tor.start_tor_service(): - logging.warning('Failed to start tor service.') + logging.warning('The tor service has hot started.') tor = None if not tor: try: diff --git a/minode/tor.py b/minode/tor.py index 96f10fa..e42d33c 100644 --- a/minode/tor.py +++ b/minode/tor.py @@ -68,6 +68,8 @@ def start_tor_service(): init_msg_handler=logwrite) except OSError: if not attempt: + if not shared.listen_for_connections: + return try: stem.version.get_system_tor_version() except IOError: