mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 08:16:39 +00:00
remove lazy dll load
This commit is contained in:
@@ -39,13 +39,13 @@ 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 := newLazyDLL("wintun.dll", func(d *lazyDLL) {})
|
/*dll := newLazyDLL("wintun.dll", func(d *lazyDLL) {})
|
||||||
|
|
||||||
err := dll.Load()
|
err := dll.Load()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("failed loading dll %v", err)
|
log.Errorf("failed loading dll %v", err)
|
||||||
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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user