src/main/java/com/linecorp/armeria/server/http/jetty/JettyServiceInvocationHandler.java
/**
         * Adds the hostname string to the specified {@link InetSocketAddress} so that
         * Jetty's {@code ServletRequest.getLocalName()} implementation returns the configured hostname.
         */
Adds the hostname string to the specified  InetSocketAddress so that
Jetty's  ServletRequest.getLocalName() implementation returns the configured hostname.
Adds the hostname string to the specified InetSocketAddress so that Jetty ' s ServletRequest . getLocalName () implementation returns the configured hostname .
private static InetSocketAddress addHostname(InetSocketAddress address, String hostname) {
            try {
                return new InetSocketAddress(InetAddress.getByAddress(
                        hostname, address.getAddress().getAddress()), address.getPort());
            } catch (UnknownHostException e) {
                throw new Error(e); 
            }
        }
private static InetSocketAddress addHostname ( InetSocketAddress address , String hostname ) { try { return new InetSocketAddress ( InetAddress . getByAddress ( hostname , address . getAddress ( ) . getAddress ( ) ) , address . getPort ( ) ) ; } catch ( UnknownHostException e ) { throw new Error ( e ) ; } }
Adds the hostname string to the specified {@link InetSocketAddress} so that
 Jetty's {@code ServletRequest.getLocalName()} implementation returns the configured hostname.
Adds the hostname string to the specified { @link InetSocketAddress } so that Jetty ' s { @code ServletRequest . getLocalName () } implementation returns the configured hostname .
// Should never happen