diff options
author | Simon Rozman <simon@rozman.si> | 2019-05-27 09:57:02 +0200 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2019-05-27 09:57:02 +0200 |
commit | b3dda6435d42d43b8fc4a643db983df9a26c27cf (patch) | |
tree | dd347f7322ec60a98668283053d49b456ec8aafe /tunnel/ifaceconfig.go | |
parent | build: set 6.1 PE flags (diff) | |
download | wireguard-windows-b3dda6435d42d43b8fc4a643db983df9a26c27cf.tar.xz wireguard-windows-b3dda6435d42d43b8fc4a643db983df9a26c27cf.zip |
winipcfg: make LUID.DeleteIPAddress accept IPNet
Thou DeleteUnicastIpAddressEntry() cares about the IP only.
Signed-off-by: Simon Rozman <simon@rozman.si>
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) } } } |