mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
chore: Add ip suppression if configured
Signed-off-by: ByteExceptionM <git@byteexception.eu>
This commit is contained in:
parent
09fe2d8db2
commit
1c50db2ccc
1 changed files with 3 additions and 1 deletions
|
|
@ -67,7 +67,9 @@ public class GeyserBungeePingPassthrough implements IGeyserPingPassthrough, List
|
|||
try {
|
||||
event = future.get(100, TimeUnit.MILLISECONDS);
|
||||
} catch (Throwable cause) {
|
||||
GeyserImpl.getInstance().getLogger().error("Failed to get ping information for " + inetSocketAddress, cause);
|
||||
String address = GeyserImpl.getInstance().getConfig().isLogPlayerIpAddresses() ? inetSocketAddress.toString() : "<IP address withheld>";
|
||||
|
||||
GeyserImpl.getInstance().getLogger().error("Failed to get ping information for " + address, cause);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue