Force IPv4 on android mirror

This commit is contained in:
Jake Halaska 2022-08-07 06:11:56 -05:00 committed by GitHub
parent 52f298ba8b
commit 11052ce0d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -825,8 +825,8 @@ function get_android() {
ISO=$(echo "${JSON_REL}" | jq -r .n)
HASH=$(echo "${JSON_REL}" | jq -r .hash.sha256)
# Traverse the directories to find the .iso location
for DIR in $(wget -q -O- "${URL}" | grep -o -E '[0-9]{5}' | sort -ur); do
if wget -q -O- "${URL}/${DIR}" | grep "${ISO}" &>/dev/null; then
for DIR in $(wget -4 -q -O- "${URL}" | grep -o -E '[0-9]{5}' | sort -ur); do
if wget -4 -q -O- "${URL}/${DIR}" | grep "${ISO}" &>/dev/null; then
URL="${URL}/${DIR}"
break
fi