Update site.py

This commit is contained in:
dami
2026-04-03 01:50:13 +08:00
parent 87c5dd5fa7
commit efaa97b9bd
+1 -1
View File
@@ -1947,7 +1947,7 @@ location ^~ {from} {\n\
conf = mw.readFile(path)
rep = r"listen\s+80\s*;"
conf = re.sub(rep, 'listen 80 default_server;', conf, 1)
rep = r"listen\s+\[\:\:\]\:80\s*ssl\s*\w*\s*;"
rep = r"listen\s+\[\:\:\]\:80\s*\w*\s*;"
conf = re.sub(rep, 'listen [::]:80 default_server;', conf, 1)
rep = r"listen\s+443\s*ssl\s*\w*\s*;"
conf = re.sub(rep, 'listen 443 ssl default_server;', conf, 1)