summaryrefslogtreecommitdiff
path: root/pkg/backend/actions.go
blob: ca45347582e4a26cd20435ae0fbc450a6828a89b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package backend

import (
	"log"
	"os"
)

func startVPN() {
	err := ctx.bm.StartVPN(ctx.Provider)
	if err != nil {
		log.Println(err)
		os.Exit(1)
	}
}

func stopVPN() {
	err := ctx.bm.StopVPN()
	if err != nil {
		log.Println(err)
	}
}

func closeVPN() {
	ctx.bm.Close()
}