From bf723ec66fd046a64e4fd57f790a4b7836a637c8 Mon Sep 17 00:00:00 2001 From: braginini Date: Fri, 7 Apr 2023 16:13:50 +0200 Subject: [PATCH] remove lazy dll load --- iface/tun_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iface/tun_windows.go b/iface/tun_windows.go index f8fc67aa5..20b81e555 100644 --- a/iface/tun_windows.go +++ b/iface/tun_windows.go @@ -39,13 +39,13 @@ func (c *tunDevice) Create() error { // createWithUserspace Creates a new WireGuard interface, using wireguard-go userspace implementation func (c *tunDevice) createWithUserspace() (NetInterface, error) { - dll := newLazyDLL("wintun.dll", func(d *lazyDLL) {}) + /*dll := newLazyDLL("wintun.dll", func(d *lazyDLL) {}) err := dll.Load() if err != nil { log.Errorf("failed loading dll %v", err) return nil, err - } + }*/ tunIface, err := tun.CreateTUN(c.name, c.mtu) if err != nil {