Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-apm
·
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-11-21 09:45:10 +0800
Commit
5ab3a4e109ea24149825c1063d17e32921989522
1 parent
fc70ad1f
ignore Baiduspider-ads
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
middleware/clientapm.js
middleware/clientapm.js
View file @
5ab3a4e
...
...
@@ -30,8 +30,8 @@ module.exports = (req, res, next) => {
ip
:
req
.
clientIp
||
'unknown'
};
if
(
!
scope
.
useragent
)
{
return
;
if
(
!
scope
.
useragent
||
/Baiduspider/
.
test
(
scope
.
useragent
))
{
return
res
.
send
();
}
try
{
...
...
Please
register
or
login
to post a comment