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
|
* Whether the proxy will parse IPs with spigot or not
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
boolean isIpFoward();
|
boolean isIpForward();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The encoded favicon.
|
* The encoded favicon.
|
||||||
|
@ -69,7 +69,7 @@ public class ServerConnector extends PacketHandler
|
|||||||
Handshake originalHandshake = user.getPendingConnection().getHandshake();
|
Handshake originalHandshake = user.getPendingConnection().getHandshake();
|
||||||
Handshake copiedHandshake = new Handshake( originalHandshake.getProtocolVersion(), originalHandshake.getHost(), originalHandshake.getPort(), 2 );
|
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();
|
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 int playerLimit = -1;
|
||||||
private Collection<String> disabledCommands;
|
private Collection<String> disabledCommands;
|
||||||
private int throttle = 4000;
|
private int throttle = 4000;
|
||||||
private boolean ipFoward;
|
private boolean ipForward;
|
||||||
private Favicon favicon;
|
private Favicon favicon;
|
||||||
|
|
||||||
public void load()
|
public void load()
|
||||||
@ -76,7 +76,7 @@ public class Configuration implements ProxyConfig
|
|||||||
onlineMode = adapter.getBoolean( "online_mode", onlineMode );
|
onlineMode = adapter.getBoolean( "online_mode", onlineMode );
|
||||||
playerLimit = adapter.getInt( "player_limit", playerLimit );
|
playerLimit = adapter.getInt( "player_limit", playerLimit );
|
||||||
throttle = adapter.getInt( "connection_throttle", throttle );
|
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" ) ) );
|
disabledCommands = new CaseInsensitiveSet( (Collection<String>) adapter.getList( "disabled_commands", Arrays.asList( "disabledcommandhere" ) ) );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user