From 4eee08d520b73fb96a43cf4888972e502c6c1fa3 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Sun, 16 May 2021 21:21:30 +0200 Subject: [feat] store pt gateway for connection info --- pkg/vpn/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkg/vpn/main.go') 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() /* -- cgit v1.2.3