Update site.py

This commit is contained in:
dami 2026-04-03 01:48:15 +08:00
parent 023a5b75b4
commit 87c5dd5fa7
1 changed files with 2 additions and 0 deletions

View File

@ -1928,6 +1928,8 @@ location ^~ {from} {\n\
conf = mw.readFile(path)
rep = r"listen\s+80.+;"
conf = re.sub(rep, 'listen 80;', conf, 1)
rep = r"listen\s+\[\:\:\]\:80.+;"
conf = re.sub(rep, 'listen [::]:80;', conf, 1)
rep = r"listen\s+443.+;"
conf = re.sub(rep, 'listen 443 ssl;', conf, 1)
rep = r"listen\s+443\s+quic.+;"