mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-25 22:15:57 -05:00
Merge pull request #1316 from mig5/fix_cli_autostart_timer
Fix the call to start_onion_service in CLI mode when using autostart timer
This commit is contained in:
commit
dd8742535f
@ -370,7 +370,7 @@ def main(cwd=None):
|
||||
)
|
||||
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)
|
||||
schedule = datetime.now() + timedelta(seconds=autostart_timer)
|
||||
if mode == "receive":
|
||||
@ -412,7 +412,7 @@ def main(cwd=None):
|
||||
except KeyboardInterrupt:
|
||||
print("")
|
||||
sys.exit()
|
||||
except (TorTooOld, TorErrorProtocolError) as e:
|
||||
except (TorTooOldEphemeral, TorTooOldStealth, TorErrorProtocolError) as e:
|
||||
print("")
|
||||
print(e.args[0])
|
||||
sys.exit()
|
||||
|
Loading…
x
Reference in New Issue
Block a user