summaryrefslogtreecommitdiff
path: root/pkg/systray/run.go
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2019-02-04 23:36:37 +0100
committerRuben Pollan <meskio@sindominio.net>2019-02-04 23:36:37 +0100
commitd0703ec25f2625ffd61489da4e2f45a7bc1be29b (patch)
treed0b77fdabf3a4c46ebef4bd868e6af2b74d87775 /pkg/systray/run.go
parentb9ef49b51c6e2570ef3aae824ab44374997b6b25 (diff)
[feat] Add -start-vpn flag
The -start-vpn flag can be set to on or off to turn the vpn on or off just after launching bitmask-vpn. So it doesn't depend on the status of the vpn of the last run. - Resolves: #114
Diffstat (limited to 'pkg/systray/run.go')
-rw-r--r--pkg/systray/run.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/systray/run.go b/pkg/systray/run.go
index 2878928..172b9e8 100644
--- a/pkg/systray/run.go
+++ b/pkg/systray/run.go
@@ -98,7 +98,7 @@ func checkAndInstallHelpers(b bitmask.Bitmask, notify *notificator) error {
}
func maybeStartVPN(b bitmask.Bitmask, conf *Config) error {
- if conf.wasUserStopped() {
+ if !conf.StartVPN {
return nil
}