mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -88,8 +88,8 @@ def contentReplace(content):
|
|||||||
def ftp_release_port(port):
|
def ftp_release_port(port):
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
try:
|
try:
|
||||||
import firewall_api
|
from utils.firewall import Firewall as MwFirewall
|
||||||
firewall_api.firewall_api().addAcceptPortArgs(port, 'pure-ftpd', 'port')
|
MwFirewall.instance().addAcceptPort(port, 'pure-ftpd', 'port')
|
||||||
return port
|
return port
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
return "Release failed {}".format(e)
|
return "Release failed {}".format(e)
|
||||||
|
|||||||
Reference in New Issue
Block a user