summaryrefslogtreecommitdiff
path: root/pkg/vpn/status.go
diff options
context:
space:
mode:
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) {