Update site_api.py

This commit is contained in:
Mr Chen 2024-07-23 00:52:56 +08:00
parent 167977a3d1
commit 16892d474e
1 changed files with 1 additions and 1 deletions

View File

@ -2820,7 +2820,7 @@ location ^~ {from} {\n\
conf = conf.replace('#error_page 404/404.html;', sslStr)
rep = "listen\s+([0-9]+)\s*[default_server]*;"
rep = "listen\s+([0-9]+)\s*[default_server|reuseport]*;"
tmp = re.findall(rep, conf)
if not mw.inArray(tmp, '443'):
listen = re.search(rep, conf).group()