From 6d0e793d8cdd92a56c408a1b55447f511336ba6e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 7 Apr 2020 23:22:15 -0400 Subject: [PATCH] fixed bugs --- openvpn.py | 2 +- test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openvpn.py b/openvpn.py index 2e62fd1..9044f8b 100644 --- a/openvpn.py +++ b/openvpn.py @@ -129,7 +129,7 @@ class Openvpn: self.status = RUNNING config_fp = self.generate_config_file() script_fp = self.generate_script() - proxycfg_fp = self.generate_config_file() + proxycfg_fp = self.generate_proxycfg() openvpn_cmd = " ".join(["openvpn", "--config", config_fp, "--route-noexec", "--route-up", script_fp, "--script-security", "2", "--mute-replay-warnings"]) # TODO: remove --mute-replay-warnings diff --git a/test.py b/test.py index 815f494..cbfbaa0 100644 --- a/test.py +++ b/test.py @@ -22,7 +22,7 @@ class MainHandler(tornado.web.RequestHandler): for idx, op in enumerate(om.ops): buf += f"op #{idx}, name: {op.name}
\n" buf += f"status: {op.status}
\n" - buf += f"pid: {op.PID}
\n" + buf += f"pid: {op.pids}
\n" buf += "log:
\n" buf += "
\n"
                 buf += op.get_log()