mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update firewall.py
This commit is contained in:
@@ -307,7 +307,7 @@ class Firewall(object):
|
||||
return mw.returnData(True, msg)
|
||||
|
||||
def delAcceptPort(self, firewall_id, port,
|
||||
protocol: str | None ='tcp'
|
||||
protocol='tcp'
|
||||
):
|
||||
panel_port = mw.getPanelPort()
|
||||
|
||||
@@ -326,7 +326,7 @@ class Firewall(object):
|
||||
return mw.returnData(False, '删除失败!:' + str(e))
|
||||
|
||||
def delAcceptPortCmd(self, port,
|
||||
protocol: str | None ='tcp'
|
||||
protocol ='tcp'
|
||||
):
|
||||
if self.__isUfw:
|
||||
if protocol == 'tcp':
|
||||
|
||||
Reference in New Issue
Block a user