From 28bb578170623c8b8ec0e859e17a430a23897e8d Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 14:07:25 +0800 Subject: [PATCH] Update site.py --- web/utils/site.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/web/utils/site.py b/web/utils/site.py index e772599b9..93c407196 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -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)