mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
update
This commit is contained in:
@@ -15,7 +15,7 @@ from flask import request
|
||||
|
||||
class config_api:
|
||||
|
||||
__version = '0.0.1'
|
||||
__version = '0.0.2'
|
||||
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
@@ -221,11 +221,11 @@ class firewall_api:
|
||||
public.execShell("/etc/init.d/sshd restart")
|
||||
|
||||
self.firewallReload()
|
||||
public.M('firewall').where(
|
||||
"ps=?", ('SSH远程管理服务',)).setField('port', port)
|
||||
# public.M('firewall').where(
|
||||
# "ps=?", ('SSH远程管理服务',)).setField('port', port)
|
||||
msg = public.getInfo('改SSH端口为[{1}]成功!', port)
|
||||
public.writeLog("防火墙管理", msg)
|
||||
return public.returnMsg(True, '修改成功!')
|
||||
return public.returnJson(True, '修改成功!')
|
||||
|
||||
def setPingApi(self):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user