open the webapp port on tails as well (#42)

This commit is contained in:
Micah Lee 2014-06-10 22:10:40 +00:00
parent a44216428f
commit 7902a3857d

View File

@ -52,6 +52,7 @@ def start_webapp(webapp_port, onionshare_port, filename, onion_host):
def launch_window(webapp_port, onionshare_port): def launch_window(webapp_port, onionshare_port):
def on_destroy(widget, data=None): def on_destroy(widget, data=None):
onionshare.tails_close_port(onionshare_port) onionshare.tails_close_port(onionshare_port)
onionshare.tails_close_port(webapp_port)
gtk.main_quit() gtk.main_quit()
window = gtk.Window() window = gtk.Window()
@ -105,6 +106,7 @@ def main():
}) })
t.daemon = True t.daemon = True
t.start() t.start()
onionshare.tails_open_port(webapp_port)
# launch the window # launch the window
launch_window(webapp_port, onionshare_port) launch_window(webapp_port, onionshare_port)