Remove localhost from check

This commit is contained in:
s809
2024-04-02 22:27:36 +05:00
parent 1cd2f75dd2
commit 8485d1585a
2 changed files with 1 additions and 6 deletions
@@ -144,10 +144,7 @@ public class RemotePlayerConnectionHandler implements Closeable
// IP/port overrides are intended for using with port forwarding services,
// and LAN clients are unlikely to need to hop through internet
InetAddress ip = ((InetSocketAddress) serverPlayer.getRemoteAddress()).getAddress();
boolean isLanPlayer = !DEBUG_ENABLE_OVERRIDES_IN_LAN &&
(ip.isLoopbackAddress() ||
ip.isLinkLocalAddress() ||
ip.isSiteLocalAddress());
boolean isLanPlayer = !DEBUG_ENABLE_OVERRIDES_IN_LAN && (ip.isLinkLocalAddress() || ip.isSiteLocalAddress());
this.pluginChannelHandler.sendMessageServer(serverPlayer, new ServerConnectInfoMessage(
!isLanPlayer && !ipOverride.isEmpty() ? ipOverride : null,
@@ -356,8 +356,6 @@
"distanthorizons.config.client.advanced.multiplayer.serverNetworking.generalSectionNote": " \u25cf General",
"distanthorizons.config.client.advanced.multiplayer.serverNetworking.enableServerNetworking": "Enable Server Networking",
"distanthorizons.config.client.advanced.multiplayer.serverNetworking.enableServerNetworking.@tooltip": "§6Attention:§r this feature is not fully implemented. \n\nIf true Distant Horizons will attempt to communicate with the connected \nserver in order to load LODs outside your vanilla render distance. \n\nNote: This requires DH to be installed on the server in order to function.",
"distanthorizons.config.client.advanced.multiplayer.serverNetworking.serverPort": "Server Port",
"distanthorizons.config.client.advanced.multiplayer.serverNetworking.serverPort.@tooltip": "The port on the server that's used for sending LOD data.",
"distanthorizons.config.client.advanced.multiplayer.serverNetworking.generationSectionNote": " \u25cf Generation",
"distanthorizons.config.client.advanced.multiplayer.serverNetworking.generationRequestRCLimit": "Gen Task Rate/Concurrency Limit",
"distanthorizons.config.client.advanced.multiplayer.serverNetworking.generationRequestRCLimit.@tooltip": "Limits the amount of generation requests sent by client and processed by server.",