diff options
author | 2021-08-13 14:11:47 +0200 | |
---|---|---|
committer | 2021-09-12 22:58:32 +0200 | |
commit | 1288280beae653cb77bff7b2452bd28fd7957d50 (patch) | |
tree | 039c1db64c20b7cb33899856e7b89554c1a475dd /tunnel/service.go | |
parent | docs: mention update notification behavior change (diff) | |
download | wireguard-windows-1288280beae653cb77bff7b2452bd28fd7957d50.tar.xz wireguard-windows-1288280beae653cb77bff7b2452bd28fd7957d50.zip |
global: prefer WireGuardNT over wireguard-go/Wintun
Also remove Wintun driver on startup.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tunnel/service.go')
-rw-r--r-- | tunnel/service.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tunnel/service.go b/tunnel/service.go index 14d03b5f..9df4fecc 100644 --- a/tunnel/service.go +++ b/tunnel/service.go @@ -34,12 +34,6 @@ type tunnelService struct { Path string } -// Escape hatch to let the embeddable-dll-service force an implementation. -// 0 - use the registry key -// 1 - use the kernel driver -// 2 - use wireguard-go -var ForceImplementation = 0 - func (service *tunnelService) Execute(args []string, r <-chan svc.ChangeRequest, changes chan<- svc.Status) (svcSpecificEC bool, exitCode uint32) { changes <- svc.Status{State: svc.StartPending} @@ -172,7 +166,7 @@ func (service *tunnelService) Execute(args []string, r <-chan svc.ChangeRequest, } log.Println("Creating network adapter") - if ForceImplementation == 1 || (ForceImplementation == 0 && conf.AdminBool("ExperimentalKernelDriver")) { + if UseFixedGUIDInsteadOfDeterministic || !conf.AdminBool("UseUserspaceImplementation") { // Does an adapter with this name already exist? adapter, err = driver.DefaultPool.OpenAdapter(config.Name) if err == nil { |