[client] Add bind activity listener to bypass udp sockets (#4646)

This commit is contained in:
Viktor Liu
2025-10-16 15:58:29 +02:00
committed by GitHub
parent 277aa2b7cc
commit 8252ff41db
20 changed files with 760 additions and 73 deletions

View File

@@ -0,0 +1,13 @@
package device
import (
"net"
"net/netip"
)
// EndpointManager manages fake IP to connection mappings for userspace bind implementations.
// Implemented by bind.ICEBind and bind.RelayBindJS.
type EndpointManager interface {
SetEndpoint(fakeIP netip.Addr, conn net.Conn)
RemoveEndpoint(fakeIP netip.Addr)
}