diff options
Diffstat (limited to 'pkg/backend/api.go')
-rw-r--r-- | pkg/backend/api.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/backend/api.go b/pkg/backend/api.go index a799b0e..293dd9e 100644 --- a/pkg/backend/api.go +++ b/pkg/backend/api.go @@ -38,6 +38,12 @@ func Login(username, password string) { go ctx.updateStatus() } +func setError(err string) { + ctx.Errors = err + go setStatus(off) + go ctx.updateStatus() +} + func SwitchOn() { go setStatus(starting) go startVPN() |