aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/ui.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-04-30 09:41:36 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-04-30 09:41:36 +0200
commita8cc9c4da5d42904037ebe40476c1816905b4556 (patch)
treed3a856a9a091733acf676287238643864a42606c /ui/ui.go
parentui: allow update labels to wrap (diff)
downloadwireguard-windows-a8cc9c4da5d42904037ebe40476c1816905b4556.tar.xz
wireguard-windows-a8cc9c4da5d42904037ebe40476c1816905b4556.zip
version: add beginnings of authenticode checking
Diffstat (limited to '')
-rw-r--r--ui/ui.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/ui/ui.go b/ui/ui.go
index 56d67e65..7cb2744a 100644
--- a/ui/ui.go
+++ b/ui/ui.go
@@ -59,7 +59,21 @@ func RunUI() {
}
}
+ //XXX: REMOVE ME!
+ const keepUpdaterInUnofficialBuild = true
+
go func() {
+ if !version.IsOfficial() {
+ mtw.Synchronize(func() {
+ mtw.SetTitle(mtw.Title() + " (unofficial/untrusted/unverified build)")
+ tray.ShowWarning("Unverified WireGuard Build", "The build of WireGuard that you are running is unofficial/untrusted/unverified. You may want to double-check your download source.")
+ })
+ if !keepUpdaterInUnofficialBuild {
+ // Don't check for updates on unofficial builds.
+ return
+ }
+ }
+
first := true
for {
update, err := updater.CheckForUpdate()