Update firewall_api.py

This commit is contained in:
midoks 2023-09-25 04:01:31 +08:00
parent 18b36b08a7
commit e0e889bbff
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ class firewall_api:
data['pass_prohibit_status'] = False
# 密码登陆配置检查
pass_rep = "^PasswordAuthentication\s+(\w*)\s*\n"
pass_rep = "PasswordAuthentication\s+(\w*)\s*\n"
pass_status = re.search(pass_rep, conf)
if pass_status:
if pass_status and pass_status.groups(0)[0].strip() == 'no':