mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-02 17:44:57 -05:00
Fix the call to start_onion_service in CLI mode when using autostart timer, which had out of date positional args. Fix Tor exception handlers which were also out of date with the start_onion_service function
This commit is contained in:
parent
67cdc0192b
commit
5b5c3ad87a
@ -370,7 +370,7 @@ def main(cwd=None):
|
|||||||
)
|
)
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
app.start_onion_service(mode, mode_settings, False, True)
|
app.start_onion_service(mode, mode_settings, False)
|
||||||
url = build_url(mode_settings, app, web)
|
url = build_url(mode_settings, app, web)
|
||||||
schedule = datetime.now() + timedelta(seconds=autostart_timer)
|
schedule = datetime.now() + timedelta(seconds=autostart_timer)
|
||||||
if mode == "receive":
|
if mode == "receive":
|
||||||
@ -412,7 +412,7 @@ def main(cwd=None):
|
|||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print("")
|
print("")
|
||||||
sys.exit()
|
sys.exit()
|
||||||
except (TorTooOld, TorErrorProtocolError) as e:
|
except (TorTooOldEphemeral, TorTooOldStealth, TorErrorProtocolError) as e:
|
||||||
print("")
|
print("")
|
||||||
print(e.args[0])
|
print(e.args[0])
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user