mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
update
This commit is contained in:
+4
-7
@@ -923,17 +923,14 @@ def isSupportSystemctl():
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
def isSupportHttp3(version):
|
def isSupportHttp3(version):
|
||||||
if version.startswith('1.25'):
|
|
||||||
return True
|
|
||||||
if version.startswith('1.27'):
|
|
||||||
return True
|
|
||||||
if version.startswith('1.29'):
|
if version.startswith('1.29'):
|
||||||
return True
|
return True
|
||||||
if version.startswith('rtmp'):
|
|
||||||
return True
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def isVhostHasReuseport():
|
def isVhostHasReuseport(version):
|
||||||
|
if not version.startswith('1.29'):
|
||||||
|
return False
|
||||||
|
|
||||||
vhost_dir = getServerDir() + '/web_conf/nginx/vhost'
|
vhost_dir = getServerDir() + '/web_conf/nginx/vhost'
|
||||||
if not os.path.exists(vhost_dir):
|
if not os.path.exists(vhost_dir):
|
||||||
return False
|
return False
|
||||||
|
|||||||
+1
-1
@@ -556,7 +556,7 @@ class sites(object):
|
|||||||
listen = re.search(rep, conf).group()
|
listen = re.search(rep, conf).group()
|
||||||
|
|
||||||
quic_conf = "quic reuseport"
|
quic_conf = "quic reuseport"
|
||||||
if mw.isVhostHasReuseport():
|
if mw.isVhostHasReuseport(version):
|
||||||
quic_conf = "quic"
|
quic_conf = "quic"
|
||||||
|
|
||||||
if mw.isSupportHttp3(version):
|
if mw.isSupportHttp3(version):
|
||||||
|
|||||||
Reference in New Issue
Block a user