summaryrefslogtreecommitdiff
path: root/pkg/config/version/checknewer.go
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-11-29 21:10:26 +0100
committerkali kaneko (leap communications) <kali@leap.se>2021-11-29 21:10:26 +0100
commit07ad41230d663816e9894b59b110fa2f7075ca18 (patch)
treedfa951c61263f46bf54c40f04276ac401444fafa /pkg/config/version/checknewer.go
parentb25ec7c923924e53ddb65f9a34e9a669dcf066c7 (diff)
[ui] style help links
Diffstat (limited to 'pkg/config/version/checknewer.go')
-rw-r--r--pkg/config/version/checknewer.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/config/version/checknewer.go b/pkg/config/version/checknewer.go
index 115696a..f253877 100644
--- a/pkg/config/version/checknewer.go
+++ b/pkg/config/version/checknewer.go
@@ -17,6 +17,9 @@ const verURI = "https://downloads.leap.se/RiseupVPN/"
// at the moment, we hardcode RiseupVPN in the path, assuming that all clients
// stay in sync.
func CanUpgrade() bool {
+ if os.Getenv("SKIP_VERSION_CHECK") == "1" {
+ return false
+ }
log.Println("Checking for updates...")
uri := verURI
switch runtime.GOOS {