diff --git a/proxy/src/main/java/net/md_5/bungee/config/YamlConfig.java b/proxy/src/main/java/net/md_5/bungee/config/YamlConfig.java index 16b4b47c..878ac767 100644 --- a/proxy/src/main/java/net/md_5/bungee/config/YamlConfig.java +++ b/proxy/src/main/java/net/md_5/bungee/config/YamlConfig.java @@ -190,7 +190,7 @@ public class YamlConfig implements ConfigurationAdapter String host = get( "host", "0.0.0.0:25577", val ); int tabListSize = get( "tab_size", 60, val ); InetSocketAddress address = Util.getAddr( host ); - Map forced = get( "forced_hosts", forcedDef, val ); + Map forced = new CaseInsensitiveMap<>( get( "forced_hosts", forcedDef, val ) ); String textureURL = get( "texture_url", null, val ); int textureSize = get( "texture_size", 16, val ); TexturePackInfo texture = ( textureURL == null ) ? null : new TexturePackInfo( textureURL, textureSize ); diff --git a/proxy/src/main/java/net/md_5/bungee/reconnect/AbstractReconnectManager.java b/proxy/src/main/java/net/md_5/bungee/reconnect/AbstractReconnectManager.java index b33689fc..448073c8 100644 --- a/proxy/src/main/java/net/md_5/bungee/reconnect/AbstractReconnectManager.java +++ b/proxy/src/main/java/net/md_5/bungee/reconnect/AbstractReconnectManager.java @@ -15,7 +15,7 @@ public abstract class AbstractReconnectManager implements ReconnectHandler { ListenerInfo listener = player.getPendingConnection().getListener(); String name; - String forced = listener.getForcedHosts().get( player.getPendingConnection().getVirtualHost().getHostName().toLowerCase() ); + String forced = listener.getForcedHosts().get( player.getPendingConnection().getVirtualHost().getHostString() ); if ( forced == null && listener.isForceDefault() ) { forced = listener.getDefaultServer();