Empty access_by_lua_block breaks satisfy any
This commit is contained in:
parent
35f5a6ce1f
commit
916b6a06d2
1 changed files with 5 additions and 2 deletions
|
@ -1032,8 +1032,10 @@ stream {
|
|||
rewrite_by_lua_block {
|
||||
balancer.rewrite()
|
||||
}
|
||||
|
||||
{{ if shouldConfigureLuaRestyWAF $all.Cfg.DisableLuaRestyWAF $location.LuaRestyWAF.Mode }}
|
||||
|
||||
access_by_lua_block {
|
||||
{{ if shouldConfigureLuaRestyWAF $all.Cfg.DisableLuaRestyWAF $location.LuaRestyWAF.Mode }}
|
||||
local lua_resty_waf = require("resty.waf")
|
||||
local waf = lua_resty_waf:new()
|
||||
|
||||
|
@ -1074,8 +1076,9 @@ stream {
|
|||
{{ end }}
|
||||
|
||||
waf:exec()
|
||||
{{ end }}
|
||||
}
|
||||
{{ end }}
|
||||
|
||||
header_filter_by_lua_block {
|
||||
{{ if shouldConfigureLuaRestyWAF $all.Cfg.DisableLuaRestyWAF $location.LuaRestyWAF.Mode }}
|
||||
local lua_resty_waf = require "resty.waf"
|
||||
|
|
Loading…
Reference in a new issue