summaryrefslogtreecommitdiff
path: root/pkg/backend
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-06-17 13:17:16 +0200
committerkali kaneko (leap communications) <kali@leap.se>2020-06-26 12:13:41 +0200
commit253b12e140905d3a38bcd09d55b9c5dbf0601d66 (patch)
tree3c2da8b70ebe0536cb4382b54d8a1a8c04f5cc4a /pkg/backend
parent35971c9a80879728a7bec38494a1edc1ecbf740f (diff)
[feat] working about dialog
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