aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/ui.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/ui.go')
-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()