summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/core
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2017-04-20 14:43:30 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2017-04-20 14:43:35 +0200
commit9c1d1bd3da383a22702abae4470513be34572d3d (patch)
tree8883c63ab2da666d93d7001d47c72eb0aff792db /src/leap/bitmask/core
parent3ebaa03a307eab2a0a4d31efd143326d6ea592b2 (diff)
[bug] fix enabling of vpn service
- Resolves: #8845
Diffstat (limited to 'src/leap/bitmask/core')
-rw-r--r--src/leap/bitmask/core/dispatcher.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/bitmask/core/dispatcher.py b/src/leap/bitmask/core/dispatcher.py
index 52de62b6..fc17b76a 100644
--- a/src/leap/bitmask/core/dispatcher.py
+++ b/src/leap/bitmask/core/dispatcher.py
@@ -436,9 +436,9 @@ class CommandDispatcher(object):
def do_VPN(self, *parts):
vpn = self._get_service(self.subcommand_vpn.label)
- if not vpn:
- return _format_result({'vpn': 'disabled'})
subcmd = parts[1]
+ if subcmd != 'enable' and not vpn:
+ return _format_result({'vpn': 'disabled'})
dispatch = self.subcommand_vpn.dispatch
if subcmd in ('enable', 'disable'):