From 4f8a156cb21973d416ff7195fbc1ccb3fda26de7 Mon Sep 17 00:00:00 2001 From: braginini Date: Thu, 6 Apr 2023 18:54:06 +0200 Subject: [PATCH] Load wintun lib --- iface/tun_windows.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/iface/tun_windows.go b/iface/tun_windows.go index b621f8c70..912529f5a 100644 --- a/iface/tun_windows.go +++ b/iface/tun_windows.go @@ -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