mirror of
https://github.com/Ysurac/openmptcprouter-vps-admin.git
synced 2025-03-09 15:40:05 +00:00
fix
This commit is contained in:
parent
56894bd463
commit
d688cab92f
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ def shorewall_port(port,proto,name):
|
||||||
for line in f:
|
for line in f:
|
||||||
if not '# OMR open ' + name + ' port ' + proto in line:
|
if not '# OMR open ' + name + ' port ' + proto in line:
|
||||||
n.write(line)
|
n.write(line)
|
||||||
n.write('ACCEPT net $FW ' + proto + ' ' + port + ' # OMR open ' + name + ' port ' + proto)
|
n.write('ACCEPT net $FW ' + proto + ' ' + port + ' # OMR open ' + name + ' port ' + proto + "\n")
|
||||||
os.close(fd)
|
os.close(fd)
|
||||||
move(tmpfile,'/etc/shorewall/rules')
|
move(tmpfile,'/etc/shorewall/rules')
|
||||||
os.system("systemctl -q reload shorewall")
|
os.system("systemctl -q reload shorewall")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue