mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-03 07:36:39 +00:00
Working single channel bind
This commit is contained in:
@@ -12,16 +12,13 @@ import (
|
||||
"net"
|
||||
)
|
||||
|
||||
func (w *WGIface) createWithUserspaceNew(sharedSock *net.UDPConn) error {
|
||||
func (w *WGIface) createWithUserspaceNew(bind conn.Bind) error {
|
||||
tunIface, err := tun.CreateTUN(w.Name, w.MTU)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
w.Interface = tunIface
|
||||
bind := &ICEBind{
|
||||
conn: sharedSock,
|
||||
}
|
||||
|
||||
// We need to create a wireguard-go device and listen to configuration requests
|
||||
tunDevice := device.NewDevice(tunIface, bind, device.NewLogger(device.LogLevelSilent, "[wiretrustee] "))
|
||||
|
||||
Reference in New Issue
Block a user