aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/updater/versions.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-01 11:14:12 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-01 11:14:12 +0200
commitcff4e77bfe62606c19c205e02fd63b3777855392 (patch)
treeec8573073bf68253267ed741b60bf23b8e4554a3 /updater/versions.go
parentui: support clipboard copying for log items (diff)
downloadwireguard-windows-cff4e77bfe62606c19c205e02fd63b3777855392.tar.xz
wireguard-windows-cff4e77bfe62606c19c205e02fd63b3777855392.zip
version: dynamically get file version
Diffstat (limited to 'updater/versions.go')
-rw-r--r--updater/versions.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/updater/versions.go b/updater/versions.go
index a5b6c258..3d1fd38f 100644
--- a/updater/versions.go
+++ b/updater/versions.go
@@ -16,7 +16,7 @@ import (
func versionNewerThanUs(candidate string) (bool, error) {
candidateParts := strings.Split(candidate, ".")
- ourParts := strings.Split(version.WireGuardWindowsVersion, ".")
+ ourParts := strings.Split(version.RunningVersion(), ".")
if len(candidateParts) == 0 || len(ourParts) == 0 {
return false, errors.New("Empty version")
}