From d0703ec25f2625ffd61489da4e2f45a7bc1be29b Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Mon, 4 Feb 2019 23:36:37 +0100 Subject: [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 --- pkg/systray/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/systray/run.go') 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 } -- cgit v1.2.3