Skip to content

Commit 34f159b

Browse files
committed
Update ipAddress type for attack wave
1 parent ce843c1 commit 34f159b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

library/agent/api/Event.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ type Heartbeat = {
158158
export type DetectedAttackWave = {
159159
type: "detected_attack_wave";
160160
request: {
161-
ipAddress: string | undefined;
161+
ipAddress: string;
162162
userAgent: string | undefined;
163163
source: string;
164164
};

library/agent/api/ReportingAPIRateLimitedClientSide.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function generateAttackWaveEvent(): Event {
6262
type: "detected_attack_wave",
6363
time: Date.now(),
6464
request: {
65-
ipAddress: undefined,
65+
ipAddress: "::1",
6666
userAgent: undefined,
6767
source: "express",
6868
},

0 commit comments

Comments
 (0)