Class RelayLoopbackAddresses

java.lang.Object
org.mockserver.netty.proxy.relay.RelayLoopbackAddresses

public final class RelayLoopbackAddresses extends Object
The local addresses of the loopback connections RelayConnectHandler opens to MockServer, each with the proxy client's channel of its tunnel, so the accepting side can tell its own relay's loopback leg from a client that merely sends the same PROXIED_ preamble, and can reach the tunnel's other leg. Each address is held only while its connection is open.
  • Method Details

    • isRelayLoopback

      public static boolean isRelayLoopback(io.netty.channel.Channel accepted)
      Returns:
      whether an accepted connection is the loopback leg of one of this JVM's relays