diff options
Diffstat (limited to '')
-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 { |