diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2021-05-16 21:21:30 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-05-17 17:52:44 +0200 |
commit | 4eee08d520b73fb96a43cf4888972e502c6c1fa3 (patch) | |
tree | 24cd97c658b7a369389f3980aa6a986bf78b72e2 /pkg/vpn/main.go | |
parent | b5b55b0b54588ad95d66fc7acfab0b9cb76c93e6 (diff) |
[feat] store pt gateway for connection info
Diffstat (limited to 'pkg/vpn/main.go')
-rw-r--r-- | pkg/vpn/main.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/vpn/main.go b/pkg/vpn/main.go index 5f5117a..f40366c 100644 --- a/pkg/vpn/main.go +++ b/pkg/vpn/main.go @@ -30,6 +30,7 @@ import ( type Bitmask struct { tempdir string onGateway bonafide.Gateway + ptGateway bonafide.Gateway statusCh chan string managementClient *openvpn.MgmtClient bonafide *bonafide.Bonafide @@ -52,7 +53,7 @@ func Init() (*Bitmask, error) { if err != nil { return nil, err } - b := Bitmask{tempdir, bonafide.Gateway{}, statusCh, nil, bf, launch, "", nil, "", []string{}} + b := Bitmask{tempdir, bonafide.Gateway{}, bonafide.Gateway{}, statusCh, nil, bf, launch, "", nil, "", []string{}} b.launch.firewallStop() /* |