This commit is contained in:
dami
2026-05-09 14:26:41 +08:00
parent 21fce1f618
commit c8f8e217e5
2 changed files with 5 additions and 8 deletions
+4 -7
View File
@@ -923,17 +923,14 @@ def isSupportSystemctl():
return True
def isSupportHttp3(version):
if version.startswith('1.25'):
return True
if version.startswith('1.27'):
return True
if version.startswith('1.29'):
return True
if version.startswith('rtmp'):
return True
return False
def isVhostHasReuseport():
def isVhostHasReuseport(version):
if not version.startswith('1.29'):
return False
vhost_dir = getServerDir() + '/web_conf/nginx/vhost'
if not os.path.exists(vhost_dir):
return False
+1 -1
View File
@@ -556,7 +556,7 @@ class sites(object):
listen = re.search(rep, conf).group()
quic_conf = "quic reuseport"
if mw.isVhostHasReuseport():
if mw.isVhostHasReuseport(version):
quic_conf = "quic"
if mw.isSupportHttp3(version):