mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 09:01:08 +03:00
[FIX] Условие AUthLimiter/RegLimiter было случайно инвертировано
This commit is contained in:
parent
45b6f64cd7
commit
7f441ad98e
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue