summaryrefslogtreecommitdiff
path: root/pkg/vpn/status.go
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-09-17 19:50:17 +0200
committerkali kaneko (leap communications) <kali@leap.se>2021-10-06 18:38:22 +0200
commitad5f4245ea2874fd8b6eb56691857c69cdf9860d (patch)
tree99b55fd3b12a9cc32148018eea37349c1964d4dc /pkg/vpn/status.go
parent77c518c638f67a2fa38187ef2b29856aab82472c (diff)
[ui] track failed state
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 88735e6..692bf09 100644
--- a/pkg/vpn/status.go
+++ b/pkg/vpn/status.go
@@ -125,3 +125,7 @@ func (b *Bitmask) getOpenvpnState() (string, error) {
}
return status, nil
}
+
+func (b *Bitmask) isFailed() bool {
+ return b.launch.failed
+}