diff options
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/vpn/openvpn.go | 2 | ||||
-rw-r--r-- | pkg/vpn/status.go | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/pkg/vpn/openvpn.go b/pkg/vpn/openvpn.go index d5f9dc2..b6593f2 100644 --- a/pkg/vpn/openvpn.go +++ b/pkg/vpn/openvpn.go @@ -245,7 +245,7 @@ func (b *Bitmask) ListGateways(provider string) ([]string, error) { // UseGateway selects name as the default gateway func (b *Bitmask) UseGateway(name string) error { - b.bonafide.SetDefaultGateway(name) + b.bonafide.SetManualGateway(name) return nil } diff --git a/pkg/vpn/status.go b/pkg/vpn/status.go index cc2fb62..7901276 100644 --- a/pkg/vpn/status.go +++ b/pkg/vpn/status.go @@ -74,6 +74,7 @@ func (b *Bitmask) eventHandler(eventCh <-chan openvpn.Event) { } if statusName == "CONNECTED" { b.onGateway = strings.Split(stateEvent.String(), ": ")[1] + log.Println(">>> CONNECTED TO", b.onGateway) } } b.statusCh <- Off |