diff options
Diffstat (limited to 'tunnel/ifaceconfig.go')
-rw-r--r-- | tunnel/ifaceconfig.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tunnel/ifaceconfig.go b/tunnel/ifaceconfig.go index fcf9dce3..1ad076fa 100644 --- a/tunnel/ifaceconfig.go +++ b/tunnel/ifaceconfig.go @@ -51,7 +51,7 @@ func cleanupAddressesOnDisconnectedInterfaces(addresses []net.IPNet) { ipnet := net.IPNet{IP: ip, Mask: net.CIDRMask(int(address.OnLinkPrefixLength), 8*len(ip))} if includedInAddresses(ipnet) { log.Printf("Cleaning up stale address %s from interface '%s'", ipnet.String(), iface.FriendlyName()) - iface.LUID.DeleteIPAddress(ipnet.IP) //TODO: BUG(rozmansi): DeleteIPAddress needs to take the full IPNet, not just the IP + iface.LUID.DeleteIPAddress(ipnet) } } } |