From 19b48672afa8e6a899511254f4d12a33e451f25d Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 31 Aug 2014 10:13:50 +1000 Subject: [PATCH] Fix longstanding forward typo --- api/src/main/java/net/md_5/bungee/api/ProxyConfig.java | 2 +- proxy/src/main/java/net/md_5/bungee/ServerConnector.java | 2 +- proxy/src/main/java/net/md_5/bungee/conf/Configuration.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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 b0bf0757..b638a14f 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 4f451d26..17e90daf 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 6e78b0eb..2ce11875 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" ) ) );