mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Don't access self.hs when using --local-only
This commit is contained in:
parent
a765a0b931
commit
e6e323fc9a
@ -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…
Reference in New Issue
Block a user