diff --git a/api/src/main/java/net/md_5/bungee/api/ProxyConfig.java b/api/src/main/java/net/md_5/bungee/api/ProxyConfig.java index b0bf07570..b638a14fb 100644 --- a/api/src/main/java/net/md_5/bungee/api/ProxyConfig.java +++ b/api/src/main/java/net/md_5/bungee/api/ProxyConfig.java @@ -60,7 +60,7 @@ public interface ProxyConfig * Whether the proxy will parse IPs with spigot or not */ @Deprecated - boolean isIpFoward(); + boolean isIpForward(); /** * The encoded favicon. diff --git a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java index 4f451d26c..17e90daff 100644 --- a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java +++ b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java @@ -69,7 +69,7 @@ public class ServerConnector extends PacketHandler Handshake originalHandshake = user.getPendingConnection().getHandshake(); Handshake copiedHandshake = new Handshake( originalHandshake.getProtocolVersion(), originalHandshake.getHost(), originalHandshake.getPort(), 2 ); - if ( BungeeCord.getInstance().config.isIpFoward() ) + if ( BungeeCord.getInstance().config.isIpForward() ) { String newHost = copiedHandshake.getHost() + "\00" + user.getAddress().getHostString() + "\00" + user.getUUID(); diff --git a/proxy/src/main/java/net/md_5/bungee/conf/Configuration.java b/proxy/src/main/java/net/md_5/bungee/conf/Configuration.java index 6e78b0eb6..2ce11875e 100644 --- a/proxy/src/main/java/net/md_5/bungee/conf/Configuration.java +++ b/proxy/src/main/java/net/md_5/bungee/conf/Configuration.java @@ -50,7 +50,7 @@ public class Configuration implements ProxyConfig private int playerLimit = -1; private Collection disabledCommands; private int throttle = 4000; - private boolean ipFoward; + private boolean ipForward; private Favicon favicon; public void load() @@ -76,7 +76,7 @@ public class Configuration implements ProxyConfig onlineMode = adapter.getBoolean( "online_mode", onlineMode ); playerLimit = adapter.getInt( "player_limit", playerLimit ); throttle = adapter.getInt( "connection_throttle", throttle ); - ipFoward = adapter.getBoolean( "ip_forward", ipFoward ); + ipForward = adapter.getBoolean( "ip_forward", ipForward ); disabledCommands = new CaseInsensitiveSet( (Collection) adapter.getList( "disabled_commands", Arrays.asList( "disabledcommandhere" ) ) );