mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-28 19:13:31 +01:00
13 lines
218 B
Go
13 lines
218 B
Go
|
package wgproxy
|
||
|
|
||
|
import (
|
||
|
"net"
|
||
|
)
|
||
|
|
||
|
// Proxy is a transfer layer between the Turn connection and the WireGuard
|
||
|
type Proxy interface {
|
||
|
AddTurnConn(urnConn net.Conn) (net.Addr, error)
|
||
|
CloseConn() error
|
||
|
Free() error
|
||
|
}
|