3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-10-01 23:50:11 +02:00

Ensure proxiedAddresses is not null before lookup (#4539)

Dieser Commit ist enthalten in:
Kas-tle 2024-04-01 15:50:58 -07:00 committet von GitHub
Ursprung fa441f1c7b
Commit 08aa5282d4
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: B5690EEEBB952194

Datei anzeigen

@ -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!");