This commit is contained in:
midoks
2022-10-15 23:16:25 +08:00
parent 6555d927ea
commit 64601e42c1
13 changed files with 39 additions and 111 deletions
+7
View File
@@ -329,6 +329,9 @@ def start():
conf = conf.replace('#include luawaf.conf;', "include luawaf.conf;")
mw.writeFile(path, conf)
import tool_task
tool_task.createBgTask()
mw.restartWeb()
return 'ok'
@@ -339,6 +342,10 @@ def stop():
conf = conf.replace('include luawaf.conf;', "#include luawaf.conf;")
mw.writeFile(path, conf)
import tool_task
tool_task.removeBgTask()
mw.restartWeb()
return 'ok'