Files
netbird/client/internal/wgproxy/factory_linux.go
2024-06-20 18:17:30 +02:00

25 lines
414 B
Go

//go:build !android
package wgproxy
import (
"context"
)
func NewFactory(ctx context.Context, wgPort int) *Factory {
f := &Factory{wgPort: wgPort}
// todo: put it back
/*
ebpfProxy := NewWGEBPFProxy(ctx, wgPort)
err := ebpfProxy.listen()
if err != nil {
log.Warnf("failed to initialize ebpf proxy, fallback to user space proxy: %s", err)
return f
}
f.ebpfProxy = ebpfProxy
*/
return f
}