diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-10-28 15:09:04 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-10-29 21:09:26 +0200 |
commit | 539979e99b3c8cb42a0df163a5626c62cfcb6696 (patch) | |
tree | b853f7db4682d4139c69f8454c756f6ee781fe19 /manager | |
parent | fetcher,winhttp: force TLS 1.2 on Win 8.0 and 7 (diff) | |
download | wireguard-windows-539979e99b3c8cb42a0df163a5626c62cfcb6696.tar.xz wireguard-windows-539979e99b3c8cb42a0df163a5626c62cfcb6696.zip |
manager: cleanup legacy wintun
It's not good to leave cruft around from the upgrade case when people
want to uninstall, so we remove wintun in the uninstaller manually
(without the help of wintun.dll, which we no longer ship). But also, so
that we can eventually drop that code, we also remove it
opportunistically when the manager starts.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'manager')
-rw-r--r-- | manager/service.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/manager/service.go b/manager/service.go index db03c3a8..ba59a20e 100644 --- a/manager/service.go +++ b/manager/service.go @@ -17,6 +17,7 @@ import ( "golang.org/x/sys/windows" "golang.org/x/sys/windows/svc" + "golang.zx2c4.com/wireguard/windows/driver" "golang.zx2c4.com/wireguard/windows/conf" "golang.zx2c4.com/wireguard/windows/elevate" @@ -259,6 +260,7 @@ func (service *managerService) Execute(args []string, r <-chan svc.ChangeRequest } go checkForUpdates() + go driver.UninstallLegacyWintun() // We uninstall opportunistically here, so that we don't have to carry around the uninstaller code forever. var sessionsPointer *windows.WTS_SESSION_INFO var count uint32 |