diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/auth/AuthLimiter.java b/LaunchServer/src/main/java/ru/gravit/launchserver/auth/AuthLimiter.java index 4f205b8f..faef83be 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/auth/AuthLimiter.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/auth/AuthLimiter.java @@ -59,7 +59,7 @@ public String toString() { public AuthLimiter(LaunchServer srv) { map = new HashMap<>(); excludeIps = new ArrayList<>(); - srv.config.authLimitExclusions.stream(StringConfigEntry.class).forEach(excludeIps::add); + if (srv.config.authLimitExclusions != null) srv.config.authLimitExclusions.stream(StringConfigEntry.class).forEach(excludeIps::add); rateLimit = srv.config.authRateLimit; rateLimitMilis = srv.config.authRateLimitMilis; }