summaryrefslogtreecommitdiff
path: root/bitmask
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2018-06-20 00:17:31 +0200
committerRuben Pollan <meskio@sindominio.net>2018-06-20 00:17:31 +0200
commit0358eda7e3b56282383877f82aab1abc96c7f627 (patch)
treeb5b65a9fe22ae37390ffc627c4379a2fb8bee067 /bitmask
parent6aa6b0cd01212a1317b87b9b7d8db60fa787de8c (diff)
[feat] display systray and bitmaskd version in about
- Resolves: #47
Diffstat (limited to 'bitmask')
-rw-r--r--bitmask/main.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/bitmask/main.go b/bitmask/main.go
index 8acab2f..0270462 100644
--- a/bitmask/main.go
+++ b/bitmask/main.go
@@ -74,6 +74,15 @@ func (b *Bitmask) Close() {
}
}
+// Version gets the bitmask version string
+func (b *Bitmask) Version() (string, error) {
+ res, err := b.send("core", "version")
+ if err != nil {
+ return "", err
+ }
+ return res["version_core"].(string), nil
+}
+
func waitForBitmaskd() error {
var err error
for i := 0; i < 30; i++ {