Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions web/core/mw.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion web/utils/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ def setSslConf(self, site_name):
listen = re.search(rep, conf).group()

quic_conf = "quic reuseport"
if mw.isVhostHasReuseport():
if mw.isVhostHasReuseport(version):
quic_conf = "quic"

if mw.isSupportHttp3(version):
Expand Down
Loading