mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 15:26:40 +00:00
Load wintun lib
This commit is contained in:
@@ -37,11 +37,11 @@ func (c *tunDevice) Create() error {
|
||||
|
||||
// createWithUserspace Creates a new WireGuard interface, using wireguard-go userspace implementation
|
||||
func (c *tunDevice) createWithUserspace() (NetInterface, error) {
|
||||
/* dll := windows.NewLazyDLL("wintun.dll")
|
||||
err := dll.Load()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}*/
|
||||
dll := windows.NewLazyDLL("wintun.dll")
|
||||
err := dll.Load()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
tunIface, err := tun.CreateTUN(c.name, c.mtu)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user