aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tunnel/service.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-08-13 14:11:47 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-09-12 22:58:32 +0200
commit1288280beae653cb77bff7b2452bd28fd7957d50 (patch)
tree039c1db64c20b7cb33899856e7b89554c1a475dd /tunnel/service.go
parentdocs: mention update notification behavior change (diff)
downloadwireguard-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.go8
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 {