mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-25 18:52:58 -03:00
Merge branch 'mig5-fix_shutdown_from_gui'
This commit is contained in:
commit
63b45d348e
1 changed files with 4 additions and 1 deletions
|
@ -393,5 +393,8 @@ def stop(port):
|
|||
s = socket.socket()
|
||||
s.connect(('127.0.0.1', port))
|
||||
s.sendall('GET /{0:s}/shutdown HTTP/1.1\r\n\r\n'.format(shutdown_slug))
|
||||
except:
|
||||
try:
|
||||
urlopen('http://127.0.0.1:{0:d}/{1:s}/shutdown'.format(port, shutdown_slug)).read()
|
||||
except:
|
||||
pass
|
||||
|
|
Loading…
Add table
Reference in a new issue