lua-resty-waf controller (#2304)

This commit is contained in:
Elvin Efendi 2018-04-08 16:37:13 -04:00 committed by Manuel Alejandro de Brito Fontes
parent b17ed7b6fd
commit a6fe800a47
15 changed files with 455 additions and 37 deletions

View file

@ -38,6 +38,10 @@ end
local function get_current_lb_alg()
local backend = get_current_backend()
if not backend then
return nil
end
return backend["load-balance"] or DEFAULT_LB_ALG
end