Authored by chunhua.zhang

add

@@ -134,7 +134,7 @@ local query_limit_ip_access_conf=function() @@ -134,7 +134,7 @@ local query_limit_ip_access_conf=function()
134 if string.find(k,"^white_ips%[*") then 134 if string.find(k,"^white_ips%[*") then
135 table.insert(white_ips,v) 135 table.insert(white_ips,v)
136 elseif string.find(k,"^degrade_methods%[*") then 136 elseif string.find(k,"^degrade_methods%[*") then
137 - d_method = split_str_list("v", ",", 2) 137 + d_method = split_str_list(v, ",", 2)
138 local e_code = d_method[2] 138 local e_code = d_method[2]
139 if e_code == nil then e_code = 9999991 end 139 if e_code == nil then e_code = 9999991 end
140 limit_ip_access.degrades[d_method[1]] = e_code 140 limit_ip_access.degrades[d_method[1]] = e_code