Make it work

This commit is contained in:
braginini
2023-03-27 19:09:01 +02:00
parent 2e7d199a6d
commit d6c2b46019
7 changed files with 34 additions and 49 deletions
+6
View File
@@ -1,6 +1,7 @@
package iface
import (
"github.com/netbirdio/netbird/iface/bind"
"net"
"sync"
"time"
@@ -21,6 +22,11 @@ type WGIface struct {
mu sync.Mutex
}
// GetBind returns a userspace implementation of WireGuard Bind interface
func (w *WGIface) GetBind() *bind.ICEBind {
return w.tun.iceBind
}
// Create creates a new Wireguard interface, sets a given IP and brings it up.
// Will reuse an existing one.
func (w *WGIface) Create() error {