mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
tor: Add torsocks as required package, needed for diagnostics.
Display error for diagnostic if command is missing.
This commit is contained in:
parent
dee7474b5e
commit
9a25e6b21d
@ -268,6 +268,8 @@ def diagnose_url(url, kind=None, env=None, extra_options=None, wrapper=None,
|
|||||||
# Authorization failed is a success
|
# Authorization failed is a success
|
||||||
if exception.returncode == 6:
|
if exception.returncode == 6:
|
||||||
result = 'passed'
|
result = 'passed'
|
||||||
|
except FileNotFoundError:
|
||||||
|
result = 'error: missing command'
|
||||||
|
|
||||||
if kind:
|
if kind:
|
||||||
return [_('Access URL {url} on tcp{kind}')
|
return [_('Access URL {url} on tcp{kind}')
|
||||||
|
|||||||
@ -55,7 +55,7 @@ def on_install():
|
|||||||
actions.superuser_run('tor', ['setup'])
|
actions.superuser_run('tor', ['setup'])
|
||||||
|
|
||||||
|
|
||||||
@package.required(['tor', 'obfsproxy'], on_install=on_install)
|
@package.required(['tor', 'obfsproxy', 'torsocks'], on_install=on_install)
|
||||||
def index(request):
|
def index(request):
|
||||||
"""Service the index page"""
|
"""Service the index page"""
|
||||||
status = get_status()
|
status = get_status()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user