📁 pre-commit

Signed-off-by: stirlingbot[bot] <stirlingbot[bot]@users.noreply.github.com>
This commit is contained in:
stirlingbot[bot] 2025-08-24 21:20:00 +00:00 committed by GitHub
parent 3af93f0adb
commit 6e8c97b76c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 3 deletions

View File

@ -215,7 +215,8 @@ public class SsrfProtectionService {
return false; return false;
} }
} }
// For IPv4-mapped IPv6 addresses, bytes 10 and 11 must be 0xff (i.e., address is ::ffff:w.x.y.z) // For IPv4-mapped IPv6 addresses, bytes 10 and 11 must be 0xff (i.e., address is
// ::ffff:w.x.y.z)
return addr[10] == (byte) 0xff && addr[11] == (byte) 0xff; return addr[10] == (byte) 0xff && addr[11] == (byte) 0xff;
} }

View File

@ -116,8 +116,12 @@ public class AuditDashboardController {
@GetMapping("/stats") @GetMapping("/stats")
@Operation(summary = "Get audit statistics for the last N days") @Operation(summary = "Get audit statistics for the last N days")
public AuditStatsResponse getAuditStats( public AuditStatsResponse getAuditStats(
@Schema(description = "Number of days to look back for audit events", example = "7", required = true) @Schema(
@RequestParam(value = "days", defaultValue = "7") int days) { description = "Number of days to look back for audit events",
example = "7",
required = true)
@RequestParam(value = "days", defaultValue = "7")
int days) {
// Get events from the last X days // Get events from the last X days
Instant startDate = Instant.now().minus(java.time.Duration.ofDays(days)); Instant startDate = Instant.now().minus(java.time.Duration.ofDays(days));