summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-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 {