Update site_api.py

This commit is contained in:
midoks
2022-11-16 18:21:41 +08:00
parent 9a9d97d482
commit 6801ea2eea
+1 -1
View File
@@ -2413,7 +2413,7 @@ location ^~ {from} {
if not mw.inArray(tmp, '443'):
listen = re.search(rep, conf).group()
http_ssl = "\n\tlisten 443 ssl http2;"
http_ssl = http_ssl + "\n\t[::]:443 ssl http2;"
http_ssl = http_ssl + "\n\ttlisten [::]:443 ssl http2;"
conf = conf.replace(listen, listen + http_ssl)
mw.backFile(file)