[Pkg-privacy-commits] [onionshare] 101/256: In Whonix, listen on 0.0.0.0 instead of 127.0.0.1 (#220)
Ulrike Uhlig
ulrike at moszumanska.debian.org
Fri May 26 12:53:23 UTC 2017
This is an automated email from the git hooks/post-receive script.
ulrike pushed a commit to branch master
in repository onionshare.
commit 6c074e4e3ed3d47a555735fb44af949c852a3d5b
Author: Micah Lee <micah at micahflee.com>
Date: Wed Feb 22 18:42:41 2017 -0800
In Whonix, listen on 0.0.0.0 instead of 127.0.0.1 (#220)
---
onionshare/web.py | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/onionshare/web.py b/onionshare/web.py
index 0b40005..4da6fd0 100644
--- a/onionshare/web.py
+++ b/onionshare/web.py
@@ -358,7 +358,14 @@ def start(port, stay_open=False, transparent_torification=False):
set_stay_open(stay_open)
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):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onionshare.git
More information about the Pkg-privacy-commits
mailing list