In Whonix, listen on 0.0.0.0 instead of 127.0.0.1 (#220)

This commit is contained in:
Micah Lee 2017-02-22 18:42:41 -08:00
parent 34301d3088
commit 6c074e4e3e
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -358,7 +358,14 @@ def start(port, stay_open=False, transparent_torification=False):
set_stay_open(stay_open) set_stay_open(stay_open)
set_transparent_torification(transparent_torification) set_transparent_torification(transparent_torification)
app.run(port=port, threaded=True)
# In Whonix, listen on 0.0.0.0 instead of 127.0.0.1 (#220)
if os.path.exists('/usr/share/anon-ws-base-files/workstation'):
host = '0.0.0.0'
else:
host = '127.0.0.1'
app.run(host=host, port=port, threaded=True)
def stop(port): def stop(port):