diff options
author | Ruben Pollan <meskio@sindominio.net> | 2018-02-14 01:28:55 +0100 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2018-02-14 10:46:59 +0100 |
commit | 11b2ca66e3cfed22d62a3cb48c4485e6a3b548a2 (patch) | |
tree | 37fb7de83659a84fcc6a3b22a326dead2a4941ab /notificator.go | |
parent | a52abd0c722ec08cd95c8c9be76e27a04012b282 (diff) |
[feat] timeout if bitmaskd doesn't respond
- Resolves: #7
Diffstat (limited to 'notificator.go')
-rw-r--r-- | notificator.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/notificator.go b/notificator.go index dce1a79..375b883 100644 --- a/notificator.go +++ b/notificator.go @@ -26,6 +26,7 @@ import ( const ( donationText = `The RiseupVPN service is expensive to run. Because we don't want to store personal information about you, there is no accounts or billing for this service. But if you want the service to continue, donate at least $5 each month at https://riseup.net/donate-vpn` missingAuthAgent = `Could not find a polkit authentication agent. Please run one and try again.` + notRunning = `Is bitmaskd running? Start bitmask and try again.` ) type notificator struct { @@ -55,6 +56,10 @@ func (n *notificator) donations() { } } +func (n *notificator) bitmaskNotRunning() { + n.notify.Push("Can't contact bitmask", notRunning, "", notif.UR_CRITICAL) +} + func (n *notificator) authAgent() { n.notify.Push("Missing authentication agent", missingAuthAgent, "", notif.UR_CRITICAL) } |