Class IceProxyProtocol
java.lang.Object
org.cloudburstmc.netty.util.nethernet.IceProxyProtocol
- All Implemented Interfaces:
AutoCloseable
PROXY protocol v2 relays read on a shared ICE UDP port until closed, so their datagrams count as
coming from the client each header declares. The setting belongs to the port, which reads the
relays of every open handle, so built-in signaling and an NXS listener on one port each keep
theirs until they close.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static @Nullable IceProxyProtocolset(@Nullable InetAddress bindAddress, int port, IpRangeSet relays)
-
Method Details
-
set
public static @Nullable IceProxyProtocol set(@Nullable InetAddress bindAddress, int port, IpRangeSet relays) - Parameters:
bindAddress- The address the port's peers bind, null for peers that leave it unsetport- The fixed ICE portrelays- The relays to read headers from- Returns:
- A handle that removes the relays, or null when there are none
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-