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, 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")