summaryrefslogtreecommitdiff
path: root/bitmask_go/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'bitmask_go/main.go')
-rw-r--r--bitmask_go/main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitmask_go/main.go b/bitmask_go/main.go
index 49f803a..6b60d43 100644
--- a/bitmask_go/main.go
+++ b/bitmask_go/main.go
@@ -28,6 +28,7 @@ type Bitmask struct {
tempdir string
statusCh chan string
managementClient *openvpn.MgmtClient
+ launch *launcher
}
// Init the connection to bitmask
@@ -37,7 +38,8 @@ func Init() (*Bitmask, error) {
if err != nil {
return nil, err
}
- b := Bitmask{tempdir, statusCh, nil}
+ launch := newLauncher()
+ b := Bitmask{tempdir, statusCh, nil, launch}
err = b.StopVPN()
if err != nil {