Update waf.lua

distributed
loveshell 2013-03-24 16:54:30 +08:00
parent f7e2e7c58d
commit ab20781544
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ function check()
ngx.exit(200) ngx.exit(200)
end end
function read_rule(var) function read_rule(var)
file = io.open("/usr/local/openresty/nginx/conf/wafconf/"..var,"r") file = io.open("/usr/local/nginx/conf/wafconf/"..var,"r")
t = {} t = {}
for line in file:lines() do for line in file:lines() do
table.insert(t,line) table.insert(t,line)