netbird/client/internal/wgproxy/proxy.go

13 lines
219 B
Go

package wgproxy
import (
"net"
)
// Proxy is a transfer layer between the Turn connection and the WireGuard
type Proxy interface {
AddTurnConn(turnConn net.Conn) (net.Addr, error)
CloseConn() error
Free() error
}