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:
@@ -285,7 +285,7 @@ class Firewall(object):
|
||||
|
||||
# 添加放行端口
|
||||
def addAcceptPort(self, port, ps, stype,
|
||||
protocol: str | None ='tcp'
|
||||
protocol='tcp'
|
||||
):
|
||||
if not self.getFwStatus():
|
||||
self.setFw(0)
|
||||
|
||||
Reference in New Issue
Block a user