File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
library/sources/http-server Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -115,8 +115,11 @@ function onFinishRequestHandler(
115115
116116 const attackWaveDetector = agent . getAttackWaveDetector ( ) ;
117117
118- if ( context . remoteAddress &&
119- ! agent . getConfig ( ) . isBypassedIP ( context . remoteAddress ) && attackWaveDetector . check ( context ) && context . remoteAddress ) {
118+ if (
119+ context . remoteAddress &&
120+ ! agent . getConfig ( ) . isBypassedIP ( context . remoteAddress ) &&
121+ attackWaveDetector . check ( context )
122+ ) {
120123 agent . onDetectedAttackWave ( {
121124 request : context ,
122125 } ) ;
Original file line number Diff line number Diff line change @@ -78,8 +78,11 @@ function discoverRouteFromStream(
7878
7979 const attackWaveDetector = agent . getAttackWaveDetector ( ) ;
8080
81- if ( context . remoteAddress &&
82- ! agent . getConfig ( ) . isBypassedIP ( context . remoteAddress ) && attackWaveDetector . check ( context ) && context . remoteAddress ) {
81+ if (
82+ context . remoteAddress &&
83+ ! agent . getConfig ( ) . isBypassedIP ( context . remoteAddress ) &&
84+ attackWaveDetector . check ( context )
85+ ) {
8386 agent . onDetectedAttackWave ( {
8487 request : context ,
8588 } ) ;
You can’t perform that action at this time.
0 commit comments