summaryrefslogtreecommitdiff
path: root/pkg/vpn/status.go
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-03-17 23:46:46 +0100
committerkali kaneko (leap communications) <kali@leap.se>2021-05-04 14:58:39 +0200
commit3baa3b7eba9696e69958c89a2b004a219f8c8d00 (patch)
tree3affa0d1ae5a8dfb1dcdce3031f19b2d00700447 /pkg/vpn/status.go
parent67bdccaac5e095301bc3841d85c3a94bad2db144 (diff)
fix filter gws by transport
Diffstat (limited to 'pkg/vpn/status.go')
-rw-r--r--pkg/vpn/status.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/vpn/status.go b/pkg/vpn/status.go
index 870bb1f..c812a9a 100644
--- a/pkg/vpn/status.go
+++ b/pkg/vpn/status.go
@@ -90,6 +90,10 @@ func (b *Bitmask) GetCurrentGateway() string {
return b.onGateway.Host
}
+func (b *Bitmask) GetCurrentLocation() string {
+ return b.onGateway.LocationName
+}
+
func (b *Bitmask) getOpenvpnState() (string, error) {
if b.managementClient == nil {
return "", fmt.Errorf("No management connected")