Update firewall.py

This commit is contained in:
dami
2025-09-10 22:02:50 +08:00
parent 9dae7988fd
commit 007b1bd21b
+1 -1
View File
@@ -231,7 +231,7 @@ class Firewall(object):
# root登陆配置检查
root_rep = r"^PermitRootLogin\s+(\w*)\s*\n"
root_status = re.search(pass_rep, conf)
root_status = re.search(root_rep, conf)
if root_status:
if root_status and root_status.groups(0)[0].strip() == 'no':
data['root_prohibit_status'] = True