remove lazy dll load

This commit is contained in:
braginini
2023-04-07 16:13:50 +02:00
parent 10afc8eeb8
commit bf723ec66f

View File

@@ -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 {