core: 修复转换为 daocloud 链接时出错

This commit is contained in:
bin456789
2026-06-09 23:08:15 +08:00
parent edb7922ee2
commit 683828d60b
+1 -1
View File
@@ -245,7 +245,7 @@ download() {
if ! aria2c "$url" "$@" &&
! { $can_use_cn_mirror && is_in_china && is_any_ipv4_has_internet &&
url_cn=https://files.m.daocloud.io/$(echo "$url" | sed -Ei 's,^https?://,,') &&
url_cn=https://files.m.daocloud.io/$(echo "$url" | sed -E 's,^https?://,,i') &&
aria2c "$url_cn" "$@"; }; then
error_and_exit "Failed to download $url"
fi