mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-14 19:00:50 +01:00
7efaf7eadb
RequestedGUID is the GUID of the created network adapter, which then influences NLA generation deterministically. With this change, NetBird should not generate multiple interfaces in every restart on Windows.
22 lines
476 B
Go
22 lines
476 B
Go
//go:build !android
|
|
// +build !android
|
|
|
|
package iface
|
|
|
|
import (
|
|
"github.com/netbirdio/netbird/iface/bind"
|
|
)
|
|
|
|
// CustomWindowsGUIDString is a custom GUID string for the interface
|
|
var CustomWindowsGUIDString string
|
|
|
|
type wgTunDevice interface {
|
|
Create() (wgConfigurer, error)
|
|
Up() (*bind.UniversalUDPMuxDefault, error)
|
|
UpdateAddr(address WGAddress) error
|
|
WgAddress() WGAddress
|
|
DeviceName() string
|
|
Close() error
|
|
Wrapper() *DeviceWrapper // todo eliminate this function
|
|
}
|