Added ipv4 specification to bash script

This commit is contained in:
Neshura 2022-11-27 18:39:34 +01:00
parent 66a85c320d
commit aaa3da5cbb
No known key found for this signature in database
GPG key ID: ACDF5B6EBECF6B0A

View file

@ -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"