aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tunnel/addressconfig.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-08-28 08:22:03 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2019-08-30 08:47:21 -0600
commit431f812450f93090967b23c633446fc618a44118 (patch)
tree2d57da00c22f339369ccf6eeb8dd4c3dd406116c /tunnel/addressconfig.go
parentmanager: clean stale adapters on startup (diff)
downloadwireguard-windows-431f812450f93090967b23c633446fc618a44118.tar.xz
wireguard-windows-431f812450f93090967b23c633446fc618a44118.zip
manager: fix nits in adapter cleanup logic and also handle ā€˜%sā€™ uniformly
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tunnel/addressconfig.go')
-rw-r--r--tunnel/addressconfig.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tunnel/addressconfig.go b/tunnel/addressconfig.go
index a1e5dc59..643e178e 100644
--- a/tunnel/addressconfig.go
+++ b/tunnel/addressconfig.go
@@ -50,7 +50,7 @@ func cleanupAddressesOnDisconnectedInterfaces(family winipcfg.AddressFamily, add
ip := address.Address.IP()
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())
+ log.Printf("Cleaning up stale address %s from interface ā€˜%sā€™", ipnet.String(), iface.FriendlyName())
iface.LUID.DeleteIPAddress(ipnet)
}
}