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()