[FIX] Условие AUthLimiter/RegLimiter было случайно инвертировано

This commit is contained in:
Gravit 2019-08-10 00:01:43 +07:00
parent 45b6f64cd7
commit 7f441ad98e
No known key found for this signature in database
GPG key ID: 061981E1E85D3216
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,7 @@ public void postInit(LaunchServer launchServer) {
} }
public boolean preAuthHook(AuthResponse.AuthContext context, Client client) { 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); throw new HookException(message);
} }
return false; return false;

View file

@ -38,7 +38,7 @@ public void postInit(LaunchServer launchServer) {
public boolean registerHook(AuthHookManager.RegContext context) public boolean registerHook(AuthHookManager.RegContext context)
{ {
if (limiter.check(context.ip)) { if (!limiter.check(context.ip)) {
throw new HookException(message); throw new HookException(message);
} }
return false; return false;