mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-22 10:16:38 +00:00
16 lines
274 B
Go
16 lines
274 B
Go
package wgproxy
|
|
|
|
import (
|
|
"context"
|
|
"net"
|
|
)
|
|
|
|
// Proxy is a transfer layer between the relayed connection and the WireGuard
|
|
type Proxy interface {
|
|
AddTurnConn(ctx context.Context, turnConn net.Conn) error
|
|
EndpointAddr() *net.UDPAddr
|
|
Work()
|
|
Pause()
|
|
CloseConn() error
|
|
}
|