diff options
Diffstat (limited to 'pkg/vpn/status.go')
-rw-r--r-- | pkg/vpn/status.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/vpn/status.go b/pkg/vpn/status.go index c812a9a..647cf27 100644 --- a/pkg/vpn/status.go +++ b/pkg/vpn/status.go @@ -94,6 +94,14 @@ func (b *Bitmask) GetCurrentLocation() string { return b.onGateway.LocationName } +func (b *Bitmask) GetCurrentCountry() string { + return b.onGateway.CountryCode +} + +func (b *Bitmask) IsManualLocation() bool { + return b.bonafide.IsManualLocation() +} + func (b *Bitmask) getOpenvpnState() (string, error) { if b.managementClient == nil { return "", fmt.Errorf("No management connected") |