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 | 65317dcd758e916b751dcae5928e3a53f6d9f701 (patch) | |
tree | dd347f7322ec60a98668283053d49b456ec8aafe /tunnel/ifaceconfig.go | |
parent | build: set 6.1 PE flags (diff) | |
download | wireguard-windows-65317dcd758e916b751dcae5928e3a53f6d9f701.tar.xz wireguard-windows-65317dcd758e916b751dcae5928e3a53f6d9f701.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 '')
-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) } } } |