expose raw vhost (#1423)

This commit is contained in:
Isaac - The456
2024-10-07 10:41:17 +01:00
committed by GitHub
parent ef1f5009d3
commit 99aaf3ce4e
6 changed files with 34 additions and 3 deletions

View File

@@ -26,11 +26,20 @@ public interface InboundConnection {
/**
* Returns the hostname that the user entered into the client, if applicable.
*
* <br/>
* This is partially processed, including removing a trailing dot, and discarding data after a null byte.
* @return the hostname from the client
*/
Optional<InetSocketAddress> getVirtualHost();
/**
* Returns the raw hostname that the client sent, if applicable.
*
* @return the raw hostname from the client
*/
Optional<String> getRawVirtualHost();
/**
* Determine whether or not the player remains online.
*