summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn/helpers
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2018-09-06 00:15:08 +0200
committerRuben Pollan <meskio@sindominio.net>2018-09-06 00:15:08 +0200
commit5970fcb5f24105de0d5af7c7ff98faa0f3a2ab25 (patch)
tree296da5887048d9c5c81cf03692d9009017365c2f /src/leap/bitmask/vpn/helpers
parentd6e1d9c1cef028e267e70875f706b9378564ddef (diff)
[bug] search for any openvpn process, the binary name might not match
Diffstat (limited to 'src/leap/bitmask/vpn/helpers')
-rwxr-xr-xsrc/leap/bitmask/vpn/helpers/linux/bitmask-root3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/leap/bitmask/vpn/helpers/linux/bitmask-root b/src/leap/bitmask/vpn/helpers/linux/bitmask-root
index 6b8f3206..73b060ad 100755
--- a/src/leap/bitmask/vpn/helpers/linux/bitmask-root
+++ b/src/leap/bitmask/vpn/helpers/linux/bitmask-root
@@ -441,9 +441,8 @@ def openvpn_stop(args):
:type args: list
"""
plist = get_process_list()
- OPENVPN_BIN = get_openvpn_bin()
found_leap_openvpn = filter(
- lambda (p, s): s.startswith(OPENVPN_BIN) and LEAPOPENVPN in s,
+ lambda (p, s): "openvpn" in s and LEAPOPENVPN in s,
plist)
if found_leap_openvpn: