mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +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) {
|
||||
if (!excludeIps.contains(context.ip) && limiter.check(context.ip)) {
|
||||
if (!excludeIps.contains(context.ip) && !limiter.check(context.ip)) {
|
||||
throw new HookException(message);
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue