mirror of
https://github.com/netbirdio/netbird.git
synced 2025-02-08 06:19:23 +01:00
13 lines
240 B
Go
13 lines
240 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) (net.Addr, error)
|
|
CloseConn() error
|
|
}
|