mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
up
This commit is contained in:
@@ -18,7 +18,7 @@ class config_api:
|
||||
# 本版解决自启动问题
|
||||
# 文件管理重命名
|
||||
# 优化计划任务管理
|
||||
__version = '0.8.7'
|
||||
__version = '0.8.6'
|
||||
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
@@ -618,15 +618,10 @@ class system_api:
|
||||
import ssl
|
||||
upAddr = 'https://raw.githubusercontent.com/midoks/mdserver-web/master/version/info.json'
|
||||
try:
|
||||
# requests.adapters.DEFAULT_RETRIES = 2
|
||||
# r = requests.get(upAddr, verify=False)
|
||||
context = ssl._create_unverified_context()
|
||||
# ssl._create_default_https_context = ssl._create_unverified_context
|
||||
req = urllib.request.urlopen(upAddr, context=context, timeout=3)
|
||||
result = req.read().decode('utf-8')
|
||||
print(result)
|
||||
version = json.loads(result)
|
||||
print(version)
|
||||
return version[0]
|
||||
except Exception as e:
|
||||
print('getServerInfo', e)
|
||||
|
||||
Reference in New Issue
Block a user