mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-10 19:52:50 -03:00
open the webapp port on tails as well (#42)
This commit is contained in:
parent
a44216428f
commit
7902a3857d
1 changed files with 2 additions and 0 deletions
|
@ -52,6 +52,7 @@ def start_webapp(webapp_port, onionshare_port, filename, onion_host):
|
|||
def launch_window(webapp_port, onionshare_port):
|
||||
def on_destroy(widget, data=None):
|
||||
onionshare.tails_close_port(onionshare_port)
|
||||
onionshare.tails_close_port(webapp_port)
|
||||
gtk.main_quit()
|
||||
|
||||
window = gtk.Window()
|
||||
|
@ -105,6 +106,7 @@ def main():
|
|||
})
|
||||
t.daemon = True
|
||||
t.start()
|
||||
onionshare.tails_open_port(webapp_port)
|
||||
|
||||
# launch the window
|
||||
launch_window(webapp_port, onionshare_port)
|
||||
|
|
Loading…
Reference in a new issue