aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2020-07-22 13:35:55 +0200
committerSimon Rozman <simon@rozman.si>2020-07-22 13:42:58 +0200
commit409df79b23b6a5a3527b1f3a06ed6a12860fe6e9 (patch)
tree194d96af1e39499de85ada752f6fce48f53f0838
parentmod: use local wireguard-go repository (diff)
downloadwireguard-windows-409df79b23b6a5a3527b1f3a06ed6a12860fe6e9.tar.xz
wireguard-windows-409df79b23b6a5a3527b1f3a06ed6a12860fe6e9.zip
manager: adopt new Wintun API
Signed-off-by: Simon Rozman <simon@rozman.si>
-rw-r--r--manager/interfacecleanup.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/manager/interfacecleanup.go b/manager/interfacecleanup.go
index f5d9ef48..cd4dbdbc 100644
--- a/manager/interfacecleanup.go
+++ b/manager/interfacecleanup.go
@@ -26,7 +26,7 @@ func cleanupStaleWintunInterfaces() {
}
defer m.Disconnect()
- tun.WintunPool.DeleteMatchingInterfaces(func(wintun *wintun.Interface) bool {
+ tun.WintunPool.DeleteMatchingAdapters(func(wintun wintun.Adapter) bool {
interfaceName, err := wintun.Name()
if err != nil {
log.Printf("Removing Wintun interface %s because determining interface name failed: %v", wintun.GUID().String(), err)