mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:19:26 +08:00
u
This commit is contained in:
@@ -15,7 +15,7 @@ from flask import request
|
||||
|
||||
class config_api:
|
||||
|
||||
__version = '0.0.3'
|
||||
__version = '0.0.4'
|
||||
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
@@ -219,8 +219,9 @@ class firewall_api:
|
||||
if public.isAppleSystem():
|
||||
return public.returnJson(True, '开发机不能操作!')
|
||||
|
||||
status = request.form.get('status', '1').strip()
|
||||
version = public.readFile('/etc/redhat-release')
|
||||
if int(get['status']) == 1:
|
||||
if int(status) == 1:
|
||||
msg = 'SSH服务已停用'
|
||||
act = 'stop'
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user