mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-04 22:10:56 +01:00
4ebf6e1c4c
Port the conn close call to eBPF proxy
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
|
|
}
|