Update mw.py

This commit is contained in:
Mr Chen
2024-05-27 14:35:44 +08:00
parent 3c00ddad75
commit 088a4ab969
+9 -8
View File
@@ -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()