mirror of
https://github.com/WilliamPeterMatthew/sslocal-manager-alpine.git
synced 2026-02-27 09:53:28 +08:00
try to fix
This commit is contained in:
@@ -48,14 +48,17 @@ def action():
|
||||
subprocess.run(["kill", pid])
|
||||
os.remove('/var/run/sslocal.pid')
|
||||
else:
|
||||
subprocess.Popen([
|
||||
cmd = [
|
||||
"sslocal",
|
||||
"--log-without-time",
|
||||
"-c", "/.ssconfig.json",
|
||||
"--daemonize-pid", "/var/run/sslocal.pid",
|
||||
TFO,
|
||||
ARGS,
|
||||
])
|
||||
"--daemonize-pid", "/var/run/sslocal.pid"
|
||||
]
|
||||
if TFO:
|
||||
cmd.append(TFO)
|
||||
if ARGS:
|
||||
cmd.extend(ARGS.split())
|
||||
subprocess.Popen(cmd)
|
||||
|
||||
return redirect('/')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user