Commit ab7049d3 authored by Jondy Zhao's avatar Jondy Zhao

config.log support both linux and windows

parent 23d1a622
......@@ -170,7 +170,8 @@ def main():
utils.makedirs(config.state)
db_path = os.path.join(config.state, 'peers.db')
if config.ovpnlog:
plib.ovpn_log = subprocess.check_output(['cygpath', '-m', config.log]).strip()
plib.ovpn_log = config.log if not sys.platform == 'cygwin' else \
subprocess.check_output(['cygpath', '-m', config.log]).strip()
signal.signal(signal.SIGHUP, lambda *args: sys.exit(-1))
signal.signal(signal.SIGTERM, lambda *args:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment