diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/components/AuthLimiterComponent.java b/LaunchServer/src/main/java/pro/gravit/launchserver/components/AuthLimiterComponent.java index 11f0d5b5..201f8050 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/components/AuthLimiterComponent.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/components/AuthLimiterComponent.java @@ -32,7 +32,7 @@ public void postInit(LaunchServer launchServer) { } public boolean preAuthHook(AuthResponse.AuthContext context, Client client) { - if (!excludeIps.contains(context.ip) && limiter.check(context.ip)) { + if (!excludeIps.contains(context.ip) && !limiter.check(context.ip)) { throw new HookException(message); } return false; diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/components/RegLimiterComponent.java b/LaunchServer/src/main/java/pro/gravit/launchserver/components/RegLimiterComponent.java index f5293874..ce11e0d0 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/components/RegLimiterComponent.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/components/RegLimiterComponent.java @@ -38,7 +38,7 @@ public void postInit(LaunchServer launchServer) { public boolean registerHook(AuthHookManager.RegContext context) { - if (limiter.check(context.ip)) { + if (!limiter.check(context.ip)) { throw new HookException(message); } return false;