summaryrefslogtreecommitdiff
path: root/pkg/vpn
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-09-01 22:15:39 +0200
committerkali kaneko (leap communications) <kali@leap.se>2021-05-04 14:58:39 +0200
commit68f566cf7fddbe9e5eb08c4c07a76375148b682b (patch)
treeea8cbf00cce36a87e6c1e81ccd74ec8d8d19edf0 /pkg/vpn
parentf2ccc80e606f804bf19d4869f892b29218f05dd6 (diff)
[feat] svg map for gateway panel
Diffstat (limited to 'pkg/vpn')
-rw-r--r--pkg/vpn/openvpn.go2
-rw-r--r--pkg/vpn/status.go1
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