From 4da57405af2ec142e9aa971b9ee1d567009a6a23 Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 10 Oct 2022 13:01:27 +0800 Subject: [PATCH] Update init.lua --- plugins/op_waf/waf/lua/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/op_waf/waf/lua/init.lua b/plugins/op_waf/waf/lua/init.lua index f9804f74a..b81bad0cb 100644 --- a/plugins/op_waf/waf/lua/init.lua +++ b/plugins/op_waf/waf/lua/init.lua @@ -127,7 +127,7 @@ function clean_waf_drop_ip() end function min_route() - -- if ngx.var.remote_addr ~= '127.0.0.1' then return false end + if ngx.var.remote_addr ~= '127.0.0.1' then return false end if uri == '/get_waf_drop_ip' then return_message(200,get_waf_drop_ip()) elseif uri == '/remove_waf_drop_ip' then