summaryrefslogtreecommitdiff
path: root/pkg/backend/actions.go
blob: 725a550ffc36b7c3031de4d8be00e1e7648ce38c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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)
	}
}