From 3baa3b7eba9696e69958c89a2b004a219f8c8d00 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Wed, 17 Mar 2021 23:46:46 +0100 Subject: fix filter gws by transport --- pkg/vpn/status.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/vpn/status.go') 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") -- cgit v1.2.3