aboutsummaryrefslogtreecommitdiff
path: root/utils/whatsapp_ip_addresses_download.sh
diff options
context:
space:
mode:
Diffstat (limited to 'utils/whatsapp_ip_addresses_download.sh')
-rwxr-xr-xutils/whatsapp_ip_addresses_download.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/utils/whatsapp_ip_addresses_download.sh b/utils/whatsapp_ip_addresses_download.sh
index ca55ef4d6..1f0e99a30 100755
--- a/utils/whatsapp_ip_addresses_download.sh
+++ b/utils/whatsapp_ip_addresses_download.sh
@@ -9,11 +9,11 @@ LIST=/tmp/wa.list
ORIGIN="https://scontent.fmxp6-1.fna.fbcdn.net/v/t39.8562-6/218944277_794653217800107_785885630662402277_n.zip?_nc_cat=102&ccb=1-5&_nc_sid=ae5e01&_nc_ohc=CxWH4uR6uPsAX-Yga3M&_nc_ht=scontent.fmxp6-1.fna&oh=00_AT9gC0NiHKwmgoBdNX9jbVbxtciJ8HzeGdOLj35n3kWeUw&oe=6201B6A9"
-echo "(1) Downloading file..."
+echo "(1) Downloading file... ${ORIGIN}"
http_response=$(curl -s -o $TMP -w "%{http_code}" ${ORIGIN})
if [ "$http_response" != "200" ]; then
echo "Error $http_response: you probably need to update the list url!"
- return
+ return 0 # WhatsApp URL broken: set this to 1 when the URL was fixed
fi
echo "(2) Processing IP addresses..."
@@ -22,6 +22,4 @@ zcat $TMP > $LIST
rm -f $TMP $LIST
echo "(3) WhatsApp IPs are available in $DEST"
-
-
-
+return 0