Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-19 14:30:17 +01:00
Ensure proxiedAddresses is not null before lookup (#4539)
Dieser Commit ist enthalten in:
Ursprung
fa441f1c7b
Commit
08aa5282d4
@ -263,7 +263,10 @@ public final class GeyserServer {
|
||||
ip = "<IP address withheld>";
|
||||
}
|
||||
|
||||
ConnectionRequestEvent requestEvent = new ConnectionRequestEvent(inetSocketAddress, this.proxiedAddresses.get(inetSocketAddress));
|
||||
ConnectionRequestEvent requestEvent = new ConnectionRequestEvent(
|
||||
inetSocketAddress,
|
||||
this.proxiedAddresses != null ? this.proxiedAddresses.get(inetSocketAddress) : null
|
||||
);
|
||||
geyser.eventBus().fire(requestEvent);
|
||||
if (requestEvent.isCancelled()) {
|
||||
geyser.getLogger().debug("Connection request from " + ip + " was cancelled using the API!");
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren