mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-24 17:47:41 +01:00
Fix longstanding forward typo
This commit is contained in:
parent
f81b8a3550
commit
19b48672af
@ -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.
|
||||
|
@ -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();
|
||||
|
||||
|
@ -50,7 +50,7 @@ public class Configuration implements ProxyConfig
|
||||
private int playerLimit = -1;
|
||||
private Collection<String> 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<String>) adapter.getList( "disabled_commands", Arrays.asList( "disabledcommandhere" ) ) );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user