Update firewall_api.py

This commit is contained in:
midoks
2022-11-20 19:01:07 +08:00
parent b8de9e3d01
commit 642bb61a25
+3
View File
@@ -296,6 +296,9 @@ class firewall_api:
msg = '开始密码登陆'
file = '/etc/ssh/sshd_config'
if not os.path.exists(file):
return mw.returnJson(False, '无法设置!')
conf = mw.readFile(file)
# print(conf)