From 13740248e48e3fde472f27cf50150844364004ef Mon Sep 17 00:00:00 2001 From: bin456789 Date: Sat, 17 May 2025 22:52:03 +0800 Subject: [PATCH] =?UTF-8?q?windows:=20=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E8=85=BE=E8=AE=AF=E4=BA=91=20virtio=20?= =?UTF-8?q?=E9=A9=B1=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes #346 --- trans.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/trans.sh b/trans.sh index 36636d3..6580352 100644 --- a/trans.sh +++ b/trans.sh @@ -195,10 +195,7 @@ download() { fi # intel 禁止了 aria2 下载 - opt_user_agent= - if [[ "$url" =~ downloadmirror.intel.com ]]; then - opt_user_agent="-U Wget/1.25.0" - fi + # 腾讯云 virtio 驱动也禁止了 aria2 下载 # -o 设置 http 下载文件名 # -O 设置 bt 首个文件的文件名 @@ -206,7 +203,7 @@ download() { -d "$(dirname "$path")" \ -o "$(basename "$path")" \ -O "1=$(basename "$path")" \ - $opt_user_agent + -U Wget/1.25.0 # opensuse 官方镜像支持 metalink # aira2 无法重命名用 metalink 下载的文件