mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-12 18:00:49 +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
|
|
}
|