mirror of
https://github.com/onionshare/onionshare.git
synced 2025-07-14 10:29:33 -04:00
Don't access self.hs when using --local-only
This commit is contained in:
parent
a765a0b931
commit
e6e323fc9a
1 changed files with 2 additions and 2 deletions
|
@ -158,8 +158,8 @@ def main(cwd=None):
|
||||||
|
|
||||||
try: # Trap Ctrl-C
|
try: # Trap Ctrl-C
|
||||||
# wait for hs, only if using old version of tor
|
# wait for hs, only if using old version of tor
|
||||||
if not app.hs.supports_ephemeral:
|
if not app.local_only:
|
||||||
if not app.local_only:
|
if not app.hs.supports_ephemeral:
|
||||||
ready = app.hs.wait_for_hs(app.onion_host)
|
ready = app.hs.wait_for_hs(app.onion_host)
|
||||||
if not ready:
|
if not ready:
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue