aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/updater/versions.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-08-28 20:38:30 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2019-08-30 08:47:21 -0600
commit2f83e4df50d954decf9abe29197aaecb68a2da7b (patch)
tree8e4cc0d04e49e5a2bfc60c7dfd11434c05b13242 /updater/versions.go
parentversion: bump (diff)
downloadwireguard-windows-2f83e4df50d954decf9abe29197aaecb68a2da7b.tar.xz
wireguard-windows-2f83e4df50d954decf9abe29197aaecb68a2da7b.zip
version: use ProductName and ProductVersion as strings
Diffstat (limited to 'updater/versions.go')
-rw-r--r--updater/versions.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/updater/versions.go b/updater/versions.go
index 6ff73391..7292ce7e 100644
--- a/updater/versions.go
+++ b/updater/versions.go
@@ -17,7 +17,8 @@ import (
func versionNewerThanUs(candidate string) (bool, error) {
candidateParts := strings.Split(candidate, ".")
- ourParts := strings.Split(version.RunningVersion(), ".")
+ _, ver := version.RunningNameVersion()
+ ourParts := strings.Split(ver, ".")
if len(candidateParts) == 0 || len(ourParts) == 0 {
return false, errors.New("Empty version")
}