mirror of
https://github.com/RogerSik/godaddy_ddns.git
synced 2024-11-24 01:20:27 +01:00
ipv4: wrong mention of debug
This commit is contained in:
parent
dd369c801d
commit
abc287ea5a
@ -25,7 +25,7 @@ result=$(curl -s -X GET -H "$headers" \
|
|||||||
"https://api.godaddy.com/v1/domains/$domain/records/A/$name")
|
"https://api.godaddy.com/v1/domains/$domain/records/A/$name")
|
||||||
|
|
||||||
dnsIp=$(echo $result | grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b")
|
dnsIp=$(echo $result | grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b")
|
||||||
# echo "dnsIp:" $dnsIp # debug
|
echo "dnsIp:" $dnsIp
|
||||||
|
|
||||||
# Get public ip address there are several websites that can do this.
|
# Get public ip address there are several websites that can do this.
|
||||||
currentIp=$(curl -s GET "https://ipv4.wtfismyip.com/text")
|
currentIp=$(curl -s GET "https://ipv4.wtfismyip.com/text")
|
||||||
|
Loading…
Reference in New Issue
Block a user