Load wintun lib

This commit is contained in:
braginini
2023-04-06 18:54:06 +02:00
parent ff0b395fc5
commit 4f8a156cb2

View File

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