summaryrefslogtreecommitdiff
path: root/bitmask
diff options
context:
space:
mode:
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++ {