Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
毕凯
2017-10-12 11:47:17 +0800
Commit
e87f0e1802b068e452bf8cb7f5b80424fa663fa2
1 parent
dcc50d06
多增加一个白名单
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
doraemon/middleware/limiter/index.js
doraemon/middleware/limiter/index.js
View file @
e87f0e1
...
...
@@ -10,7 +10,8 @@ const captchaPolicy = require('./policies/captcha');
const
IP_WHITE_LIST
=
[
'106.38.38.146'
,
'218.94.75.58'
,
'218.94.75.50'
'218.94.75.50'
,
'218.94.77.166'
];
const
limiter
=
(
rule
,
policy
,
context
)
=>
{
...
...
Please
register
or
login
to post a comment