From f91114578c73e0ce4e417ae1344a64eed31e08ea Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Wed, 1 Dec 2021 21:55:28 +0100 Subject: [feat] disable autostart we've agreed that the autostart behaviour can be unexpected; we'll expose the ability under preferences (it can be controlled via cli right now). --- gui/backend.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gui/backend.go') diff --git a/gui/backend.go b/gui/backend.go index 516ef4a..5feb6d4 100644 --- a/gui/backend.go +++ b/gui/backend.go @@ -87,7 +87,6 @@ func SubscribeToEvent(event string, f unsafe.Pointer) { 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 @@ -98,6 +97,7 @@ func InitializeBitmaskContext(provider string, //export InitializeTestBitmaskContext func InitializeTestBitmaskContext(provider string, + jsonPtr unsafe.Pointer, jsonLen C.int) { json := C.GoBytes(jsonPtr, jsonLen) opts := backend.InitOptsFromJSON(provider, string(json)) -- cgit v1.2.3