summaryrefslogtreecommitdiff
path: root/pkg/vpn/main.go
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-09-02 21:38:13 +0200
committerkali kaneko (leap communications) <kali@leap.se>2021-05-04 14:58:39 +0200
commit335bb742b957370bbf40ae77a661559805ab307f (patch)
tree3d8b9a8023b1bcca2b531bf57b1fd846916f4a8e /pkg/vpn/main.go
parent68f566cf7fddbe9e5eb08c4c07a76375148b682b (diff)
[feat] expose gateway selection in webapi
Diffstat (limited to 'pkg/vpn/main.go')
-rw-r--r--pkg/vpn/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/vpn/main.go b/pkg/vpn/main.go
index 9ddd9fd..29b843b 100644
--- a/pkg/vpn/main.go
+++ b/pkg/vpn/main.go
@@ -29,7 +29,7 @@ import (
// Bitmask holds the bitmask client data
type Bitmask struct {
tempdir string
- onGateway string
+ onGateway bonafide.Gateway
statusCh chan string
managementClient *openvpn.MgmtClient
bonafide *bonafide.Bonafide
@@ -45,12 +45,12 @@ func Init() (*Bitmask, error) {
if err != nil {
return nil, err
}
- bonafide := bonafide.New()
+ bf := bonafide.New()
launch, err := newLauncher()
if err != nil {
return nil, err
}
- b := Bitmask{tempdir, "", statusCh, nil, bonafide, launch, "", nil}
+ b := Bitmask{tempdir, bonafide.Gateway{}, statusCh, nil, bf, launch, "", nil}
/*
TODO -- we still want to do this, since it resets the fw/vpn if running