diff options
Diffstat (limited to 'pkg/bitmask/init.go')
-rw-r--r-- | pkg/bitmask/init.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pkg/bitmask/init.go b/pkg/bitmask/init.go index a96ab87..b86deb8 100644 --- a/pkg/bitmask/init.go +++ b/pkg/bitmask/init.go @@ -131,7 +131,10 @@ func maybeStartVPN(b Bitmask, conf *config.Config) error { return nil } - err := b.StartVPN(config.Provider) - conf.SetUserStoppedVPN(false) - return err + if b.CanStartVPN() { + err := b.StartVPN(config.Provider) + conf.SetUserStoppedVPN(false) + return err + } + return nil } |