mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update firewall.py
This commit is contained in:
@@ -233,7 +233,7 @@ class Firewall(object):
|
|||||||
root_rep = r"PermitRootLogin\s+(\w*)\s*\n"
|
root_rep = r"PermitRootLogin\s+(\w*)\s*\n"
|
||||||
root_status = re.search(pass_rep, conf)
|
root_status = re.search(pass_rep, conf)
|
||||||
if root_status:
|
if root_status:
|
||||||
if root_status and root_status.groups(0)[0].strip() == 'no':
|
if root_status and root_status.groups(0)[0].strip() == 'yes':
|
||||||
data['root_prohibit_status'] = True
|
data['root_prohibit_status'] = True
|
||||||
else:
|
else:
|
||||||
data['root_prohibit_status'] = True
|
data['root_prohibit_status'] = True
|
||||||
|
|||||||
Reference in New Issue
Block a user