Skip to content

Commit 2577a20

Browse files
committed
fix: don't perform geo check with redacted IP
1 parent e688dd3 commit 2577a20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/Webhooks/Test-CIPPAuditLogRules.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function Test-CIPPAuditLogRules {
9494
}
9595
}
9696

97-
if ($Data.clientip) {
97+
if ($Data.clientip -and $Data.clientip -notmatch '[X]+') { # Ignore IP addresses that have been redacted
9898
if ($Data.clientip -match '^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}:\d+$') {
9999
$Data.clientip = $Data.clientip -replace ':\d+$', '' # Remove the port number if present
100100
}

0 commit comments

Comments
 (0)