From 0067d8dba415d18759b170fa01a93f011e59474e Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Thu, 22 Jun 2017 08:06:20 -0700 Subject: [bug] trim whitespace from options string this was producing a bug with parsing options in a recent enough openvpn. - Resolves: #8945 --- src/leap/bitmask/vpn/helpers/osx/bitmask-helper | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/leap/bitmask/vpn/helpers/osx') diff --git a/src/leap/bitmask/vpn/helpers/osx/bitmask-helper b/src/leap/bitmask/vpn/helpers/osx/bitmask-helper index 32201aa..f8d90b8 100755 --- a/src/leap/bitmask/vpn/helpers/osx/bitmask-helper +++ b/src/leap/bitmask/vpn/helpers/osx/bitmask-helper @@ -167,7 +167,7 @@ def recv_until_marker(sock): total_data[-2] = last_pair[:last_pair.find(end)] total_data.pop() break - return ''.join(total_data) + return ''.join(total_data).strip() def handle_command(sock): @@ -256,10 +256,10 @@ def openvpn_start(*args): # XXX DEBUG ------------------------------------------------- # try: - # result = subprocess.check_output( - # cmd, shell=False, stderr=subprocess.STDOUT) + # result = subprocess.check_output( + # cmd, shell=False, stderr=subprocess.STDOUT) # except Exception as exc: - # syslog.syslog(syslog.LOG_WARNING, exc.output) + # syslog.syslog(syslog.LOG_WARNING, exc.output) def openvpn_stop(sig='TERM'): -- cgit v1.2.3