summaryrefslogtreecommitdiff
path: root/pkg/vpn/status.go
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-03-17 17:15:19 +0100
committerkali kaneko (leap communications) <kali@leap.se>2021-05-04 14:58:39 +0200
commit76cacf3d60e3dbfcb6fcb82558d9d79f6d068fb8 (patch)
tree8a9a06e9748836d47a67465be470d70e1a808060 /pkg/vpn/status.go
parent8d616ba53416e5ca6205e9e29a2b3b0fc625f2d1 (diff)
wip: select by city from the gui
Diffstat (limited to 'pkg/vpn/status.go')
-rw-r--r--pkg/vpn/status.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/vpn/status.go b/pkg/vpn/status.go
index 005db7e..870bb1f 100644
--- a/pkg/vpn/status.go
+++ b/pkg/vpn/status.go
@@ -77,7 +77,7 @@ func (b *Bitmask) eventHandler(eventCh <-chan openvpn.Event) {
gw, err := b.bonafide.GetGatewayByIP(ip)
if err == nil {
b.onGateway = gw
- log.Println("Connected to gateway:", b.onGateway.Label)
+ log.Println("Connected to gateway:", b.onGateway.Host)
} else {
log.Println("ERROR: connected to unknown gateway", ip)
}
@@ -87,7 +87,7 @@ func (b *Bitmask) eventHandler(eventCh <-chan openvpn.Event) {
}
func (b *Bitmask) GetCurrentGateway() string {
- return b.onGateway.Label
+ return b.onGateway.Host
}
func (b *Bitmask) getOpenvpnState() (string, error) {