From 53cb56ddf2a7425a8c5688d778cbb6cd32ac045f Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 13 Feb 2023 15:39:57 +0800 Subject: [PATCH] up --- class/core/mw.py | 5 +++++ plugins/op_waf/index.py | 8 ++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/class/core/mw.py b/class/core/mw.py index 448ac0f1e..d508baf8d 100755 --- a/class/core/mw.py +++ b/class/core/mw.py @@ -309,6 +309,11 @@ def opLuaInitAccessFile(): opLuaMake('access_by_lua_file') +def opLuaMake(): + opLuaInitFile() + opLuaInitWorkerFile() + opLuaInitAccessFile() + # ------------------------------ openresty end ----------------------------- diff --git a/plugins/op_waf/index.py b/plugins/op_waf/index.py index de99dd7d4..a75bc3ab0 100755 --- a/plugins/op_waf/index.py +++ b/plugins/op_waf/index.py @@ -356,9 +356,7 @@ def makeDstLua(): content = contentReplace(content) mw.writeFile(access_file_dst, content) - mw.opLuaInitFile() - mw.opLuaInitWorkerFile() - mw.opLuaInitAccessFile() + mw.opLuaMake() def initDreplace(): @@ -450,9 +448,7 @@ def stop(): import tool_task tool_task.removeBgTask() - mw.opLuaInitFile() - mw.opLuaInitWorkerFile() - mw.opLuaInitAccessFile() + mw.opLuaMake() restartWeb() return 'ok'