fixed bugs

This commit is contained in:
root 2020-04-07 23:22:15 -04:00
parent 7e5a19c74d
commit 6d0e793d8c
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -22,7 +22,7 @@ class MainHandler(tornado.web.RequestHandler):
for idx, op in enumerate(om.ops):
buf += f"op #{idx}, name: {op.name} <br/>\n"
buf += f"status: {op.status} <br/>\n"
buf += f"pid: {op.PID} <br/>\n"
buf += f"pid: {op.pids} <br/>\n"
buf += "log: <br/>\n"
buf += "<pre>\n"
buf += op.get_log()