This commit is contained in:
midoks
2022-10-22 21:58:35 +08:00
parent f980dba7ed
commit 04ed4b180a
4 changed files with 40 additions and 147 deletions
+8
View File
@@ -1164,6 +1164,12 @@ def installPreInspection():
return 'ok'
def cleanDropIp():
url = "http://127.0.0.1/clean_waf_drop_ip"
data = mw.httpGet(url)
return mw.returnJson(True, 'ok!', data)
if __name__ == "__main__":
func = sys.argv[1]
if func == 'status':
@@ -1250,5 +1256,7 @@ if __name__ == "__main__":
print(getWafConf())
elif func == 'waf_site':
print(getWafSite())
elif func == 'clean_drop_ip':
print(cleanDropIp())
else:
print('error')