Don't access self.hs when using --local-only

This commit is contained in:
Micah Lee 2015-12-04 12:37:51 -08:00
parent a765a0b931
commit e6e323fc9a

View File

@ -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()