Skip to content

Commit

Permalink
update ghproxy url (#72)
Browse files Browse the repository at this point in the history
The primary domain ghproxy.com has been banned by the GFW.
  • Loading branch information
meiweijia committed Dec 22, 2023
1 parent 389a4eb commit af913f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions box/scripts/box.tool
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ upfile() {
fi
# Use ghproxy
if [ "${use_ghproxy}" == true ] && [[ "${update_url}" == @(https://github.com/*|https://raw.githubusercontent.com/*|https://gist.github.com/*|https://gist.githubusercontent.com/*) ]]; then
update_url="https://ghproxy.com/${update_url}"
update_url="https://mirror.ghproxy.com/${update_url}"
fi
# request
request="busybox wget"
Expand Down Expand Up @@ -363,7 +363,7 @@ upkernel() {
tag="$latest_version"
else
if [ "$use_ghproxy" == true ]; then
download_link="https://ghproxy.com/${download_link}"
download_link="https://mirror.ghproxy.com/${download_link}"
fi
tag="Prerelease-Alpha"
latest_version=$(busybox wget --no-check-certificate -qO- "${download_link}/expanded_assets/${tag}" | grep -oE "alpha-[0-9a-z]+" | head -1)
Expand Down Expand Up @@ -491,7 +491,7 @@ upxui() {
file_dashboard="${box_dir}/${xdashboard}.zip"
url="https://github.com/MetaCubeX/metacubexd/archive/gh-pages.zip"
if [ "$use_ghproxy" == true ]; then
url="https://ghproxy.com/${url}"
url="https://mirror.ghproxy.com/${url}"
fi
dir_name="metacubexd-gh-pages"
log Debug "Download ${url}"
Expand Down

0 comments on commit af913f1

Please sign in to comment.