summaryrefslogtreecommitdiff
path: root/tun/tun_freebsd.go
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2019-08-28 11:39:01 +0200
committerSimon Rozman <simon@rozman.si>2019-08-28 11:39:01 +0200
commit7305b4ce935828da5c2081c69a6b554a8c15ed53 (patch)
treedaf0777ac1f3e2c0ec79a05041efff17b32c5c74 /tun/tun_freebsd.go
parent26fb615b11a581e399771448c5ae19a01e7be7f2 (diff)
downloadwireguard-go-7305b4ce935828da5c2081c69a6b554a8c15ed53.tar.gz
wireguard-go-7305b4ce935828da5c2081c69a6b554a8c15ed53.zip
wintun: upgrade deleting all interfaces and make it reusable
DeleteAllInterfaces() didn't check if SPDRP_DEVICEDESC == "WireGuard Tunnel". It deleted _all_ Wintun adapters, not just WireGuard's. Furthermore, the DeleteAllInterfaces() was upgraded into a new function called DeleteMatchingInterfaces() for selectively deletion. This will be used by WireGuard to clean stale Wintun adapters. Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'tun/tun_freebsd.go')
0 files changed, 0 insertions, 0 deletions