Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CnChunfeng
/
ichunt_lua_waf
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
60c30b23
authored
Oct 19, 2020
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
增加代码
parent
3f4300d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
waf.lua
waf.lua
View file @
60c30b23
...
@@ -27,13 +27,12 @@ local cjson = require "cjson"
...
@@ -27,13 +27,12 @@ local cjson = require "cjson"
-------去除一些不要验证的请求并获取url
-------去除一些不要验证的请求并获取url
local
urlok
,
temp_uri
=
reqhandle
.
Selfwhiteurl
()
local
urlok
,
temp_uri
=
reqhandle
.
Selfwhiteurl
()
if
urlok
==
"ok"
then
if
urlok
==
"ok"
then
red
:
close
()
return
return
end
end
-------链接redis------------
-------链接redis------------
local
red
=
redis
:
new
()
red
=
redis
:
new
()
red
:
set_timeout
(
1000
)
red
:
set_timeout
(
1000
)
local
ok
,
err
=
red
:
connect
(
config
.
redis_host
,
config
.
redis_port
)
local
ok
,
err
=
red
:
connect
(
config
.
redis_host
,
config
.
redis_port
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment