Remove localhost from check
This commit is contained in:
+1
-4
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user