mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-21 04:54:14 -04:00
commit
05ec78dc34
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ def tails_open_port(port):
|
||||||
def tails_close_port(port):
|
def tails_close_port(port):
|
||||||
if get_platform() == 'Tails':
|
if get_platform() == 'Tails':
|
||||||
print translated("closing_hole")
|
print translated("closing_hole")
|
||||||
subprocess.call(['/sbin/iptables', '-I', 'OUTPUT', '-o', 'lo', '-p', 'tcp', '--dport', str(port), '-j', 'REJECT'])
|
subprocess.call(['/sbin/iptables', '-D', 'OUTPUT', '-o', 'lo', '-p', 'tcp', '--dport', str(port), '-j', 'ACCEPT'])
|
||||||
|
|
||||||
def load_strings(default="en"):
|
def load_strings(default="en"):
|
||||||
global strings
|
global strings
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue