mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 08:16:39 +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
|
// createWithUserspace Creates a new WireGuard interface, using wireguard-go userspace implementation
|
||||||
func (c *tunDevice) createWithUserspace() (NetInterface, error) {
|
func (c *tunDevice) createWithUserspace() (NetInterface, error) {
|
||||||
/* dll := windows.NewLazyDLL("wintun.dll")
|
dll := windows.NewLazyDLL("wintun.dll")
|
||||||
err := dll.Load()
|
err := dll.Load()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}*/
|
}
|
||||||
tunIface, err := tun.CreateTUN(c.name, c.mtu)
|
tunIface, err := tun.CreateTUN(c.name, c.mtu)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
Reference in New Issue
Block a user