OP防火墙-0.2.3

This commit is contained in:
midoks
2022-10-24 23:12:45 +08:00
parent d5f3b0d442
commit 4e05f29fcd
5 changed files with 85 additions and 2 deletions
+2 -1
View File
@@ -253,6 +253,7 @@ def contentReplace(content):
def autoMakeLuaConfSingle(file):
# path = getPluginDir() + "/waf/rule/" + file + ".json"
path = getServerDir() + "/waf/rule/" + file + ".json"
to_path = getServerDir() + "/waf/conf/rule_" + file + ".lua"
content = mw.readFile(path)
@@ -280,7 +281,7 @@ def autoMakeLuaHtmlSingle(file):
def autoMakeLuaConf():
conf_list = ['args', 'cookie', 'ip_black', 'ip_white',
'ipv6_black', 'post', 'scan_black', 'url',
'user_agent']
'url_white', 'user_agent']
for x in conf_list:
autoMakeLuaConfSingle(x)