fixed bugs
This commit is contained in:
parent
7e5a19c74d
commit
6d0e793d8c
@ -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
|
||||
|
||||
2
test.py
2
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} <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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user