Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
周少峰
7 years ago
Commit
1ab95a7da69a00a2e1a1a690c7a8a7749ce07040
1 parent
7e146e57
auto format
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 @
1ab95a7
...
...
@@ -65,7 +65,8 @@ module.exports = (req, res, next) => {
limiter
(
userAgent
,
captchaPolicy
,
context
),
limiter
(
ip
,
captchaPolicy
,
context
),
limiter
(
qpsLimiter
,
captchaPolicy
,
context
)
//limiter(asynchronous, captchaPolicy, context)
// limiter(asynchronous, captchaPolicy, context)
// limiter(fakerLimiter, reporterPolicy, context)
]).
then
((
results
)
=>
{
let
allPass
=
true
,
exclusion
=
false
,
policy
=
null
;
...
...
Please
register
or
login
to post a comment