mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-13 10:21:10 +01:00
4ebf6e1c4c
Port the conn close call to eBPF proxy
22 lines
363 B
Go
22 lines
363 B
Go
//go:build !linux || android
|
|
|
|
package wgproxy
|
|
|
|
import "github.com/netbirdio/netbird/client/internal/wgproxy/usp"
|
|
|
|
type Factory struct {
|
|
wgPort int
|
|
}
|
|
|
|
func NewFactory(_ bool, wgPort int) *Factory {
|
|
return &Factory{wgPort: wgPort}
|
|
}
|
|
|
|
func (w *Factory) GetProxy() Proxy {
|
|
return usp.NewWGUserSpaceProxy(w.wgPort)
|
|
}
|
|
|
|
func (w *Factory) Free() error {
|
|
return nil
|
|
}
|