diff --git a/app/common/src/main/java/stirling/software/common/service/SsrfProtectionService.java b/app/common/src/main/java/stirling/software/common/service/SsrfProtectionService.java index b58e0d516..da6d9f27e 100644 --- a/app/common/src/main/java/stirling/software/common/service/SsrfProtectionService.java +++ b/app/common/src/main/java/stirling/software/common/service/SsrfProtectionService.java @@ -215,7 +215,8 @@ public class SsrfProtectionService { 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; } diff --git a/app/proprietary/src/main/java/stirling/software/proprietary/controller/api/AuditDashboardController.java b/app/proprietary/src/main/java/stirling/software/proprietary/controller/api/AuditDashboardController.java index cd1c8b9e5..16f860e96 100644 --- a/app/proprietary/src/main/java/stirling/software/proprietary/controller/api/AuditDashboardController.java +++ b/app/proprietary/src/main/java/stirling/software/proprietary/controller/api/AuditDashboardController.java @@ -116,8 +116,12 @@ public class AuditDashboardController { @GetMapping("/stats") @Operation(summary = "Get audit statistics for the last N days") public AuditStatsResponse getAuditStats( - @Schema(description = "Number of days to look back for audit events", example = "7", required = true) - @RequestParam(value = "days", defaultValue = "7") int days) { + @Schema( + 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 Instant startDate = Instant.now().minus(java.time.Duration.ofDays(days));