diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-04-30 09:41:36 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-04-30 09:41:36 +0200 |
commit | a8cc9c4da5d42904037ebe40476c1816905b4556 (patch) | |
tree | d3a856a9a091733acf676287238643864a42606c /ui/ui.go | |
parent | ui: allow update labels to wrap (diff) | |
download | wireguard-windows-a8cc9c4da5d42904037ebe40476c1816905b4556.tar.xz wireguard-windows-a8cc9c4da5d42904037ebe40476c1816905b4556.zip |
version: add beginnings of authenticode checking
Diffstat (limited to '')
-rw-r--r-- | ui/ui.go | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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() |