Merge pull request #119 from wangyonghong/patch-1

feature: Support AdoptOpenJDK 16
This commit is contained in:
Zenithal 2021-03-22 20:43:57 +08:00 committed by GitHub
commit 088d923f10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ import requests
DOWNLOAD_TIMEOUT = int(os.getenv('DOWNLOAD_TIMEOUT', '1800'))
BASE_PATH = os.getenv('TUNASYNC_WORKING_DIR')
BASE_URL = os.getenv('TUNASYNC_UPSTREAM_URL', "http://adoptopenjdk.jfrog.io/adoptopenjdk")
FEATURE_VERSIONS = range(8, 16)
FEATURE_VERSIONS = range(8, 17)
def download_file(url: str, dst_file: Path)->bool:
try: