From 5970fcb5f24105de0d5af7c7ff98faa0f3a2ab25 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Thu, 6 Sep 2018 00:15:08 +0200 Subject: [bug] search for any openvpn process, the binary name might not match --- src/leap/bitmask/vpn/helpers/linux/bitmask-root | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/leap/bitmask/vpn/helpers/linux') 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: -- cgit v1.2.3