From 3f0f21989649ccc1daa43e29f8bada634abd0fc3 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sun, 24 Nov 2024 21:31:44 +0800 Subject: [PATCH] Update site.py --- web/utils/site.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/utils/site.py b/web/utils/site.py index e7d70651d..82c725998 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -1472,7 +1472,11 @@ location ^~ {from} {\n\ proxy_txt = "{}/{}/{}.conf.txt".format(self.proxyPath, site_name, proxy_id) if os.path.exists(proxy_conf): mw.execShell('mv ' + proxy_txt + ' ' + proxy_conf) - self.close_proxy = [] + + + if len(self.close_proxy) > 0: + mw.restartWeb() + self.close_proxy = [] return True