Skip to content

Commit

Permalink
Update init.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
loveshell committed Mar 26, 2013
1 parent c45d85b commit 68dc9cf
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 @@ -84,7 +84,6 @@ function log(method,url,data)
write("/data/logs/hack/"..ngx.var.server_name.."_sec.log",ngx.var.remote_addr.." ".." ["..ngx.localtime().."] \""..method.." "..url.."\" \"-\" \"".."-\"\n")
end
end
--file:close()
end
--------------------------------------响应函数--------------------------------------------------------------------------------
function check()
Expand All @@ -99,6 +98,7 @@ function read_rule(var)
for line in file:lines() do
table.insert(t,line)
end
file:close()
return(table.concat(t,"|"))
end
regex=read_rule('global')
Expand Down

0 comments on commit 68dc9cf

Please sign in to comment.