mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-02 22:41:56 +03:00
NPE AuthLimiter fix.
This commit is contained in:
parent
12421bbac2
commit
60208997ea
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ public String toString() {
|
||||||
public AuthLimiter(LaunchServer srv) {
|
public AuthLimiter(LaunchServer srv) {
|
||||||
map = new HashMap<>();
|
map = new HashMap<>();
|
||||||
excludeIps = new ArrayList<>();
|
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;
|
rateLimit = srv.config.authRateLimit;
|
||||||
rateLimitMilis = srv.config.authRateLimitMilis;
|
rateLimitMilis = srv.config.authRateLimitMilis;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue