diff options
Diffstat (limited to 'gui/backend.go')
-rw-r--r-- | gui/backend.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gui/backend.go b/gui/backend.go index 7632bb4..92fbb97 100644 --- a/gui/backend.go +++ b/gui/backend.go @@ -53,9 +53,15 @@ func SubscribeToEvent(event string, f unsafe.Pointer) { } //export InitializeBitmaskContext -func InitializeBitmaskContext(provider string, jsonPtr unsafe.Pointer, jsonLen C.int) { +func InitializeBitmaskContext(provider string, + jsonPtr unsafe.Pointer, jsonLen C.int, + obfs4 bool, disableAutostart bool, startVPN string) { + json := C.GoBytes(jsonPtr, jsonLen) opts := backend.InitOptsFromJSON(provider, string(json)) + opts.Obfs4 = obfs4 + opts.DisableAutostart = disableAutostart + opts.StartVPN = startVPN backend.InitializeBitmaskContext(opts) } |