Empty access_by_lua_block breaks satisfy any

This commit is contained in:
Manuel Alejandro de Brito Fontes 2019-01-10 10:27:23 -03:00
parent 35f5a6ce1f
commit 916b6a06d2

View file

@ -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"