summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/backend.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/gui/backend.go b/gui/backend.go
index abacd85..9453d88 100644
--- a/gui/backend.go
+++ b/gui/backend.go
@@ -59,9 +59,13 @@ func InitializeBitmaskContext(provider string,
}
//export InitializeTestBitmaskContext
-func InitializeTestBitmaskContext() {
- opts := &backend.InitOpts{}
+func InitializeTestBitmaskContext(provider string,
+ jsonPtr unsafe.Pointer, jsonLen C.int) {
+ json := C.GoBytes(jsonPtr, jsonLen)
+ opts := backend.InitOptsFromJSON(provider, string(json))
+ opts.DisableAutostart = true
opts.SkipLaunch = true
+ opts.StartVPN = "no"
backend.InitializeBitmaskContext(opts)
backend.EnableMockBackend()
}