Skip to content

Commit

Permalink
白名单只对uri做判断
Browse files Browse the repository at this point in the history
  • Loading branch information
loveshell committed Apr 7, 2015
1 parent 564979d commit ae8aa78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function whiteurl()
if WhiteCheck then
if wturlrules ~=nil then
for _,rule in pairs(wturlrules) do
if ngxmatch(ngx.var.request_uri,rule,"isjo") then
if ngxmatch(ngx.var.uri,rule,"isjo") then
return true
end
end
Expand Down

0 comments on commit ae8aa78

Please sign in to comment.