Fix ipv4
This commit is contained in:
parent
dc5c6551c4
commit
819c2e0300
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ fi
|
||||||
# ipv4
|
# ipv4
|
||||||
if [ "${DYNV6_IPV4_ENABLED}" = "true" ]; then
|
if [ "${DYNV6_IPV4_ENABLED}" = "true" ]; then
|
||||||
echo "Testing IPv4";
|
echo "Testing IPv4";
|
||||||
ipv4Address=$(curl -s "https://v4.ident.me/")
|
ipv4Address=$(curl -s "https://api.ipify.org/?format=text")
|
||||||
ipv4Res=$(curl -fsS "https://ipv4.dynv6.com/api/update?hostname=${hostname}&ipv4=${ipv4Address}&token=${token}")
|
ipv4Res=$(curl -fsS "https://ipv4.dynv6.com/api/update?hostname=${hostname}&ipv4=${ipv4Address}&token=${token}")
|
||||||
ipv4Changed=true;
|
ipv4Changed=true;
|
||||||
if [ "$ipv4Res" = "addresses unchanged" ]; then
|
if [ "$ipv4Res" = "addresses unchanged" ]; then
|
||||||
|
|
Loading…
Reference in a new issue