From 1522e4b1a4cd93b16125e2ff3c3c59562bed82b4 Mon Sep 17 00:00:00 2001 From: Jake Halaska <26490690+5Dev24@users.noreply.github.com> Date: Sun, 7 Aug 2022 06:11:56 -0500 Subject: [PATCH] Force IPv4 on android mirror --- quickget | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickget b/quickget index 6488b58..1b75636 100755 --- a/quickget +++ b/quickget @@ -845,8 +845,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