|
|
|
@ -378,9 +378,8 @@ function _M.is_ngx_match_orgin(self,rule,match, sign) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function _M.ngx_match_string(self, rules, content,sign) |
|
|
|
|
|
|
|
|
|
local t = self:is_ngx_match_orgin(rules, content, sign) |
|
|
|
|
function _M.ngx_match_string(self, rule, content,sign) |
|
|
|
|
local t = self:is_ngx_match_orgin(rule, content, sign) |
|
|
|
|
if t then |
|
|
|
|
return true |
|
|
|
|
end |
|
|
|
@ -388,6 +387,19 @@ function _M.ngx_match_string(self, rules, content,sign) |
|
|
|
|
return false |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
function _M.ngx_match_list(self, rules, content) |
|
|
|
|
for i,rule in ipairs(rules) |
|
|
|
|
do |
|
|
|
|
if rule[1] == 1 then |
|
|
|
|
local t = self:is_ngx_match_orgin(rule[2], content, rule[3]) |
|
|
|
|
if t then |
|
|
|
|
return true |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
return false |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
function _M.is_ngx_match_ua(self, rules, content) |
|
|
|
|
-- ngx.header.content_type = "text/html" |
|
|
|
|
for i,rule in ipairs(rules) |
|
|
|
|