aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tunnel/ifaceconfig.go
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2019-05-27 09:57:02 +0200
committerSimon Rozman <simon@rozman.si>2019-05-27 09:57:02 +0200
commit65317dcd758e916b751dcae5928e3a53f6d9f701 (patch)
treedd347f7322ec60a98668283053d49b456ec8aafe /tunnel/ifaceconfig.go
parentbuild: set 6.1 PE flags (diff)
downloadwireguard-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.go2
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)
}
}
}