Commit 43f99430 authored by Jondy Zhao's avatar Jondy Zhao

fix openvpn log path problem in the cygwin

parent 866d9caf
...@@ -170,7 +170,7 @@ def main(): ...@@ -170,7 +170,7 @@ def main():
utils.makedirs(config.state) utils.makedirs(config.state)
db_path = os.path.join(config.state, 'peers.db') db_path = os.path.join(config.state, 'peers.db')
if config.ovpnlog: if config.ovpnlog:
plib.ovpn_log = config.log plib.ovpn_log = subprocess.check_output(['cygpath', '-m', config.log]).strip()
signal.signal(signal.SIGHUP, lambda *args: sys.exit(-1)) signal.signal(signal.SIGHUP, lambda *args: sys.exit(-1))
signal.signal(signal.SIGTERM, lambda *args: 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