Update site.py

This commit is contained in:
dami
2026-04-03 14:07:25 +08:00
parent 2965df19cb
commit 28bb578170
+5 -2
View File
@@ -554,13 +554,16 @@ class sites(object):
tmp = re.findall(rep, conf)
if not mw.inArray(tmp, '443'):
listen = re.search(rep, conf).group()
http_ssl = "\n\tlisten 443 ssl;"
http_ssl = http_ssl + "\n\tlisten [::]:443 ssl;"
if mw.isSupportHttp3(version):
http_ssl = "\n\tlisten 443 ssl;"
http_ssl = http_ssl + "\n\tlisten [::]:443 ssl;"
http_ssl = http_ssl + "\n\tlisten 443 quic;#reuseport"
http_ssl = http_ssl + "\n\tlisten [::]:443 quic;"
http_ssl = http_ssl + "\n\thttp3 on;"
http_ssl = http_ssl + "\n\thttp2 on;"
else:
http_ssl = "\n\tlisten 443 ssl thttp2;"
http_ssl = http_ssl + "\n\tlisten [::]:443 ssl thttp2;"
conf = conf.replace(listen, listen + http_ssl)
mw.backFile(file)