diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-08-13 14:11:47 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-09-12 22:58:32 +0200 |
commit | 1288280beae653cb77bff7b2452bd28fd7957d50 (patch) | |
tree | 039c1db64c20b7cb33899856e7b89554c1a475dd /version | |
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 'version')
-rw-r--r-- | version/protocol.go | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/version/protocol.go b/version/protocol.go deleted file mode 100644 index 72a35e95..00000000 --- a/version/protocol.go +++ /dev/null @@ -1,28 +0,0 @@ -/* SPDX-License-Identifier: MIT - * - * Copyright (C) 2019-2021 WireGuard LLC. All Rights Reserved. - */ - -package version - -import ( - "runtime/debug" - "strings" -) - -func ProtoImplementation() string { - info, ok := debug.ReadBuildInfo() - if !ok { - return "unknown" - } - for _, dep := range info.Deps { - if dep.Path == "golang.zx2c4.com/wireguard" { - parts := strings.Split(dep.Version, "-") - if len(parts) == 3 && len(parts[2]) == 12 { - return parts[2][:7] - } - return dep.Version - } - } - return "unknown" -} |