From 5b89ff7dd99eea1c6df67eaf012532dc38e24bb1 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Wed, 10 Jul 2019 20:28:09 +0200 Subject: [bug] missing bytes conversion --- src/leap/bitmask/vpn/helpers/linux/bitmask-root | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/leap/bitmask/vpn') diff --git a/src/leap/bitmask/vpn/helpers/linux/bitmask-root b/src/leap/bitmask/vpn/helpers/linux/bitmask-root index a043f30c..42a46bd5 100644 --- a/src/leap/bitmask/vpn/helpers/linux/bitmask-root +++ b/src/leap/bitmask/vpn/helpers/linux/bitmask-root @@ -448,7 +448,7 @@ def openvpn_stop(args): """ plist = get_process_list() for pid, proc in plist: - if bytes("openvpn", encoding='utf-8') in proc and LEAPOPENVPN in proc: + if bytes("openvpn", 'utf-8') in proc and bytes(LEAPOPENVPN, 'utf-8') in proc: os.kill(int(pid), signal.SIGTERM) break -- cgit v1.2.3