mirror of
https://github.com/PaperMC/Paper.git
synced 2025-05-19 13:40:24 -07:00
Added API to get player ha proxy address
This commit is contained in:
parent
5e1dc7cf47
commit
daebdc24e7
@ -267,6 +267,16 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
|||||||
@Nullable
|
@Nullable
|
||||||
public InetSocketAddress getAddress();
|
public InetSocketAddress getAddress();
|
||||||
|
|
||||||
|
// Paper start - Add API to get player's proxy address
|
||||||
|
/**
|
||||||
|
* Gets the socket address of this player's proxy
|
||||||
|
*
|
||||||
|
* @return the player's proxy address, null if the server doesn't have Proxy Protocol enabled, or the player didn't connect to an HAProxy instance
|
||||||
|
*/
|
||||||
|
@Nullable
|
||||||
|
public InetSocketAddress getHAProxyAddress();
|
||||||
|
// Paper end - Add API to get player's proxy address
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets if this connection has been transferred from another server.
|
* Gets if this connection has been transferred from another server.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user