lua-resty-waf controller (#2304)
This commit is contained in:
parent
b17ed7b6fd
commit
a6fe800a47
15 changed files with 455 additions and 37 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue