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
郭成尧
2018-05-16 14:34:14 +0800
Commit
a5daa998025fc309fdd1dcd0a207d8d6aa4c258e
1 parent
09cac070
try-catch
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
doraemon/middleware/limiter/rules/useragent.js
doraemon/middleware/limiter/rules/useragent.js
View file @
a5daa99
...
...
@@ -20,6 +20,11 @@ module.exports = (limiter, policy) => {
try
{
blacklist
=
JSON
.
parse
(
args
[
0
]);
}
catch
(
error
)
{
logger
.
error
(
error
);
}
try
{
whitelist
=
JSON
.
parse
(
args
[
1
]);
}
catch
(
error
)
{
logger
.
error
(
error
);
...
...
Please
register
or
login
to post a comment