From 2e7702904813dbdbfb2f1fa24979e80222bb2e27 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Wed, 31 Mar 2021 18:14:20 +0200 Subject: Add a proper reconnection mechanism --- pkg/vpn/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pkg/vpn/main.go') diff --git a/pkg/vpn/main.go b/pkg/vpn/main.go index 29b843b..5f5117a 100644 --- a/pkg/vpn/main.go +++ b/pkg/vpn/main.go @@ -36,6 +36,8 @@ type Bitmask struct { launch *launcher transport string shapes *shapeshifter.ShapeShifter + certPemPath string + openvpnArgs []string } // Init the connection to bitmask @@ -50,8 +52,9 @@ func Init() (*Bitmask, error) { if err != nil { return nil, err } - b := Bitmask{tempdir, bonafide.Gateway{}, statusCh, nil, bf, launch, "", nil} + b := Bitmask{tempdir, bonafide.Gateway{}, statusCh, nil, bf, launch, "", nil, "", []string{}} + b.launch.firewallStop() /* TODO -- we still want to do this, since it resets the fw/vpn if running from a previous one, but first we need to complete all the -- cgit v1.2.3