prettier formatter used

This commit is contained in:
Roger Sikorski 2022-08-01 22:45:44 +02:00
parent 02ce78927c
commit 5d383d5315
3 changed files with 32 additions and 33 deletions

View File

@ -1,6 +1,7 @@
Forked from [gist mcarpenterjr/godaddy_ddns.sh](https://gist.github.com/mcarpenterjr/1dedf9f9f842710ba5f07937ef4f5ae49) Forked from [gist mcarpenterjr/godaddy_ddns.sh](https://gist.github.com/mcarpenterjr/1dedf9f9f842710ba5f07937ef4f5ae49)
Changes: Changes:
* usage of wtfismyip.com
* added IPv6 support (for the poor people which ISP is regularly changing the ipv6 ranges) - usage of wtfismyip.com
* lower ttl (600) - added IPv6 support (for the poor people which ISP is regularly changing the ipv6 ranges)
- lower ttl (600)

View File

@ -31,8 +31,7 @@ echo "dnsIp:" $dnsIp
currentIp=$(curl -s GET "https://ipv4.wtfismyip.com/text") currentIp=$(curl -s GET "https://ipv4.wtfismyip.com/text")
echo "currentIp:" $currentIp echo "currentIp:" $currentIp
if [ $dnsIp != $currentIp ]; if [ $dnsIp != $currentIp ]; then
then
echo "Ips are not equal" echo "Ips are not equal"
request='[{"data":"'$currentIp'","name":"'$name'","ttl":600,"type":"A"}]' request='[{"data":"'$currentIp'","name":"'$name'","ttl":600,"type":"A"}]'
# echo $request # debug # echo $request # debug

View File

@ -31,8 +31,7 @@ echo "dnsIp:" $dnsIp
currentIp=$(curl -s GET "https://ipv6.wtfismyip.com/text") currentIp=$(curl -s GET "https://ipv6.wtfismyip.com/text")
echo "currentIp:" $currentIp echo "currentIp:" $currentIp
if [ $dnsIp != $currentIp ]; if [ $dnsIp != $currentIp ]; then
then
echo "Ips are not equal" echo "Ips are not equal"
request='[{"data":"'$currentIp'","name":"'$name'","ttl":600,"type":"AAAA"}]' request='[{"data":"'$currentIp'","name":"'$name'","ttl":600,"type":"AAAA"}]'
# echo $request # debug # echo $request # debug