Interface TransparentProxyHandler.OriginalDestinationResolver

All Known Implementing Classes:
CompositeOriginalDestinationResolver, ConntrackOriginalDestinationResolver, DnsIntentOriginalDestinationResolver, EbpfOriginalDestinationResolver, SoOriginalDstResolver, TproxyOriginalDestinationResolver
Enclosing class:
TransparentProxyHandler
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface TransparentProxyHandler.OriginalDestinationResolver
Strategy interface for resolving the original destination. Allows the helper to be replaced in tests without touching real sockets.
  • Method Summary

    Modifier and Type
    Method
    Description
    resolve(io.netty.channel.Channel channel)
     
  • Method Details

    • resolve

      InetSocketAddress resolve(io.netty.channel.Channel channel)
      Parameters:
      channel - the accepted Netty channel
      Returns:
      the original destination, or null if unavailable
      Throws:
      UnsupportedOperationException - on unsupported platforms