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