mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 07:16:38 +00:00
14 lines
312 B
Go
14 lines
312 B
Go
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)
|
|
}
|