From aaa3da5cbb06ccf08b0202fa6e308414abb10ce3 Mon Sep 17 00:00:00 2001 From: Neshura Date: Sun, 27 Nov 2022 18:39:34 +0100 Subject: [PATCH] Added ipv4 specification to bash script --- set_ip.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/set_ip.sh b/set_ip.sh index 12e4881..155e0a6 100644 --- a/set_ip.sh +++ b/set_ip.sh @@ -13,7 +13,7 @@ else if [ ! -e cloudflare.json ] || [ ! -e config.ini ]; then echo "Cloudflare config not found, is the script run in the correct directory?" else - ipv4=$(curl -k -s https://am.i.mullvad.net/ip) + ipv4=$(curl -k -s https://am.i.mullvad.net/ip -4) ipv6=$(curl -k -s https://ipv6.am.i.mullvad.net/) source venv/bin/activate python3 ./cloudflare_script.py 4 "$ipv4"