Skip to content

Commit 1a3c8b6

Browse files
committed
Format code after merge
1 parent 15bb912 commit 1a3c8b6

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

library/sources/http-server/createRequestListener.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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
});

library/sources/http-server/http2/createStreamListener.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)