2022-11-27 13:14:08 +00:00
|
|
|
#!/bin/bash
|
2022-11-27 15:49:00 +00:00
|
|
|
cd "/usr/bin/app" || exit
|
|
|
|
while :
|
|
|
|
do
|
2022-11-27 13:14:08 +00:00
|
|
|
ipv4=$(curl -k -s https://am.i.mullvad.net/ip)
|
|
|
|
ipv6=$(curl -k -s https://ipv6.am.i.mullvad.net/)
|
|
|
|
python3 ./cloudflare_script.py 4 "$ipv4"
|
|
|
|
python3 ./cloudflare_script.py 6 "$ipv6"
|
2022-11-27 15:49:00 +00:00
|
|
|
sleep 120
|
|
|
|
done
|