Update init.lua
parent
842dec7297
commit
339d5ebfec
2
init.lua
2
init.lua
|
@ -124,6 +124,7 @@ end
|
||||||
|
|
||||||
function ua()
|
function ua()
|
||||||
local ua = ngx.var.http_user_agent
|
local ua = ngx.var.http_user_agent
|
||||||
|
if ua ~= nil then
|
||||||
for _,rule in pairs(uarules) do
|
for _,rule in pairs(uarules) do
|
||||||
if rule ~="" and ngxmatch(ua,rule,"isjo") then
|
if rule ~="" and ngxmatch(ua,rule,"isjo") then
|
||||||
log('UA',ngx.var.request_uri,"-",rule)
|
log('UA',ngx.var.request_uri,"-",rule)
|
||||||
|
@ -131,6 +132,7 @@ function ua()
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
function body(data)
|
function body(data)
|
||||||
|
|
Loading…
Reference in New Issue