mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update mw.py
This commit is contained in:
@@ -925,12 +925,17 @@ def isSupportSystemctl():
|
||||
def isSupportHttp3(version):
|
||||
if version.startswith('1.29'):
|
||||
return True
|
||||
if version.startswith('1.31'):
|
||||
return True
|
||||
return False
|
||||
|
||||
def isVhostHasReuseport(version):
|
||||
if not version.startswith('1.29'):
|
||||
return False
|
||||
|
||||
if not version.startswith('1.31'):
|
||||
return False
|
||||
|
||||
vhost_dir = getServerDir() + '/web_conf/nginx/vhost'
|
||||
if not os.path.exists(vhost_dir):
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user