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