diff --git a/src/main/java/com/ghostchu/btn/sparkle/module/analyse/AnalyseService.java b/src/main/java/com/ghostchu/btn/sparkle/module/analyse/AnalyseService.java index 02244ef..ae70d52 100644 --- a/src/main/java/com/ghostchu/btn/sparkle/module/analyse/AnalyseService.java +++ b/src/main/java/com/ghostchu/btn/sparkle/module/analyse/AnalyseService.java @@ -103,6 +103,7 @@ public void cronUntrustedIPAddresses() throws InterruptedException { Duration.ofMinutes(30) ) .stream() + .distinct() .map(IPUtil::toString) .collect(Collectors.toList())) .stream().map(IPUtil::toIPAddress)