Fallback to relay conn

This commit is contained in:
Zoltán Papp
2024-06-20 18:17:30 +02:00
parent c7db2c0524
commit 6801dcb3f6
6 changed files with 122 additions and 17 deletions

View File

@@ -8,6 +8,17 @@ import (
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
}