From 088a4ab969b6c870e43970a9ccf317520a8fd161 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 27 May 2024 14:35:44 +0800 Subject: [PATCH] Update mw.py --- class/core/mw.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/class/core/mw.py b/class/core/mw.py index 7531b59c4..98068b6ca 100755 --- a/class/core/mw.py +++ b/class/core/mw.py @@ -1300,15 +1300,16 @@ def checkDomainPanel(): if choose == 'local': scheme == 'https' + if choose == 'nginx': + # print(port) + npid = getServerDir() + "/openresty/nginx/logs/nginx.pid" + if not os.path.exists(npid): + return False - # print(port) - npid = getServerDir() + "/openresty/nginx/logs/nginx.pid" - if not os.path.exists(npid): - return False - - nconf = getServerDir() + "/web_conf/nginx/vhost/panel.conf" - if os.path.exists(nconf): - port = "80" + nconf = getServerDir() + "/web_conf/nginx/vhost/panel.conf" + if os.path.exists(nconf): + port = "80" + if domain: client_ip = getClientIp()