mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-20 17:58:02 +02:00
fix: windows iface build
This commit is contained in:
parent
561bd681d9
commit
729b16e599
@ -17,7 +17,7 @@ func assignAddr(address string, ifaceName string) error {
|
|||||||
ip, ipnet, _ := net.ParseCIDR(address)
|
ip, ipnet, _ := net.ParseCIDR(address)
|
||||||
|
|
||||||
log.Debugf("adding address %s to interface: %s", address, ifaceName)
|
log.Debugf("adding address %s to interface: %s", address, ifaceName)
|
||||||
err = luid.SetIPAddresses([]net.IPNet{{ip, ipnet.Mask}})
|
err := luid.SetIPAddresses([]net.IPNet{{ip, ipnet.Mask}})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user