Added ipv4 specification to bash script
This commit is contained in:
parent
66a85c320d
commit
aaa3da5cbb
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue