diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/leap/bitmask/vpn/helpers/osx/bitmask-helper | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/leap/bitmask/vpn/helpers/osx/bitmask-helper b/src/leap/bitmask/vpn/helpers/osx/bitmask-helper index 74f72f7f..7795ba2b 100755 --- a/src/leap/bitmask/vpn/helpers/osx/bitmask-helper +++ b/src/leap/bitmask/vpn/helpers/osx/bitmask-helper @@ -189,7 +189,7 @@ def handle_command(sock): } cmd_call = cmd_dict.get(command, None) - syslog.syslog(syslog.LOG_WARNING, 'call: %s' % (str(cmd_call))) + # syslog.syslog(syslog.LOG_WARNING, 'call: %s' % (str(cmd_call))) try: if cmd_call: syslog.syslog( @@ -248,11 +248,15 @@ def openvpn_start(*args): binary = ['/usr/local/sbin/openvpn'] cmd = binary + opts - # syslog.syslog(syslog.LOG_WARNING, 'LAUNCHING VPN: ' + ' '.join(cmd)) + syslog.syslog(syslog.LOG_WARNING, 'LAUNCHING VPN: ' + ' '.join(cmd)) global openvpn_proc # TODO sanitize options openvpn_proc = subprocess.Popen(cmd, shell=False, bufsize=-1) + # try: + # result = subprocess.check_output(cmd, shell=False, stderr=subprocess.STDOUT) + # except Exception as exc: + # syslog.syslog(syslog.LOG_WARNING, exc.output) def openvpn_stop(sig='TERM'): |