Authored by chunhua.zhang

bug fix

... ... @@ -134,10 +134,12 @@ local query_limit_ip_access_conf=function()
if string.find(k,"^white_ips%[*") then
table.insert(white_ips,v)
elseif string.find(k,"^degrade_methods%[*") then
d_method = split_str_list(v, ",", 2)
local e_code = d_method[2]
if e_code == nil then e_code = 9999991 end
limit_ip_access.degrades[d_method[1]] = e_code
if v and v ~= '' then
d_method = split_str_list(v, ",", 2)
local e_code = d_method[2]
if e_code == nil then e_code = 9999991 end
limit_ip_access.degrades[d_method[1]] = e_code
end
end
end
limit_ip_access["white_ips"]=white_ips
... ...