Don't show configuration error when Tor HS is not available

When we configure a Tor hidden service and haven't yet run Tor at least
once, then Tor hidden service hostname and private key are not
available.  This situation requires running Tor atleast once and is not
a configuration error.  When Tor runs, it see the hidden service
configuration and creates the Hidden service information.
This commit is contained in:
Sunil Mohan Adapa 2014-11-11 21:56:29 +05:30
parent a7afba8583
commit 9a88174ab4

View File

@ -95,7 +95,7 @@ def get_status():
hs_ports = ''
elif output == 'error':
hs_enabled = False
hs_hostname = 'Configuration Error'
hs_hostname = 'Not available (Run Tor at least once)'
hs_ports = ''
else:
hs_enabled = True