[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

@@ -21,6 +21,7 @@ type Bind interface {
conn.Bind
GetICEMux() (*udpmux.UniversalUDPMuxDefault, error)
ActivityRecorder() *bind.ActivityRecorder
EndpointManager
}
type TunNetstackDevice struct {
@@ -155,3 +156,8 @@ func (t *TunNetstackDevice) Device() *device.Device {
func (t *TunNetstackDevice) GetNet() *netstack.Net {
return t.net
}
// GetICEBind returns the bind instance
func (t *TunNetstackDevice) GetICEBind() EndpointManager {
return t.bind
}