summaryrefslogtreecommitdiff
path: root/pkg/backend
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/backend')
-rw-r--r--pkg/backend/bitmask.go2
-rw-r--r--pkg/backend/status.go1
2 files changed, 3 insertions, 0 deletions
diff --git a/pkg/backend/bitmask.go b/pkg/backend/bitmask.go
index feff115..2b58859 100644
--- a/pkg/backend/bitmask.go
+++ b/pkg/backend/bitmask.go
@@ -6,6 +6,7 @@ import (
"0xacab.org/leap/bitmask-vpn/pkg/bitmask"
"0xacab.org/leap/bitmask-vpn/pkg/config"
+ "0xacab.org/leap/bitmask-vpn/pkg/config/version"
)
func initializeBitmask() {
@@ -58,6 +59,7 @@ func initializeContext(provider, appName string) {
DonateURL: config.DonateURL,
AskForDonations: wantDonations(),
DonateDialog: false,
+ Version: version.VERSION,
Status: st,
}
go trigger(OnStatusChanged)
diff --git a/pkg/backend/status.go b/pkg/backend/status.go
index 6b13dd3..84b27b7 100644
--- a/pkg/backend/status.go
+++ b/pkg/backend/status.go
@@ -34,6 +34,7 @@ type connectionCtx struct {
AskForDonations bool `json:"askForDonations"`
DonateDialog bool `json:"donateDialog"`
DonateURL string `json:"donateURL"`
+ Version string `json:"version"`
Status status `json:"status"`
bm bitmask.Bitmask
cfg *config.Config