diff --git a/plugins/op_waf/index.py b/plugins/op_waf/index.py index 0fd0487c1..4c3b4d802 100755 --- a/plugins/op_waf/index.py +++ b/plugins/op_waf/index.py @@ -114,7 +114,15 @@ def initSiteInfo(): tmp['open'] = False tmp['cc'] = config_contents['cc'] - + tmp['retry'] = config_contents['retry'] + tmp['get'] = config_contents['get'] + tmp['post'] = config_contents['post'] + tmp['user-agent'] = config_contents['user-agent'] + tmp['cookie'] = config_contents['cookie'] + tmp['scan'] = config_contents['scan'] + + cdn_header = ['x-forwarded-for', 'x-real-ip'] + tmp['cdn_header'] = cdn_header site_contents_new[name] = tmp cjson = public.getJson(site_contents_new) diff --git a/plugins/op_waf/js/op_waf.js b/plugins/op_waf/js/op_waf.js index 3a1f5ebad..26a755378 100755 --- a/plugins/op_waf/js/op_waf.js +++ b/plugins/op_waf/js/op_waf.js @@ -1063,6 +1063,87 @@ function siteWafConfig(siteName, type) { \