Update firewall_api.py

This commit is contained in:
midoks
2022-11-20 19:04:16 +08:00
parent 642bb61a25
commit e5ae0ecc7c
+1 -1
View File
@@ -212,7 +212,7 @@ class firewall_api:
status = False
# 密码登陆配置检查
pass_rep = "^(PasswordAuthentication)\s+(\w*)\s*\n"
pass_rep = "^#PasswordAuthentication\s+(\w*)\s*\n"
pass_status = re.search(pass_rep, conf)
data['pass_prohibit_status'] = True
if pass_status and pass_status.groups(0)[0].strip() == 'yes':