Use ssl
This commit is contained in:
parent
580da795bf
commit
778f8d4ab6
1 changed files with 3 additions and 3 deletions
|
@ -96,7 +96,7 @@ echo "Checking ${hostname}"
|
||||||
if [ "${DYNV6_IPV6_ENABLED}" = "true" ]; then
|
if [ "${DYNV6_IPV6_ENABLED}" = "true" ]; then
|
||||||
echo "Testing IPv6";
|
echo "Testing IPv6";
|
||||||
ipv6Address=$(curl -s "https://v6.ident.me/")
|
ipv6Address=$(curl -s "https://v6.ident.me/")
|
||||||
ipv6Res=$(curl -fsS "http://ipv6.dynv6.com/api/update?hostname=${hostname}&ipv6=${ipv6Address}&token=${token}")
|
ipv6Res=$(curl -fsS "https://ipv6.dynv6.com/api/update?hostname=${hostname}&ipv6=${ipv6Address}&token=${token}")
|
||||||
ipv6Changed=true;
|
ipv6Changed=true;
|
||||||
|
|
||||||
if [ "${ipv6Res}" = "addresses unchanged" ]; then
|
if [ "${ipv6Res}" = "addresses unchanged" ]; then
|
||||||
|
@ -116,7 +116,7 @@ fi
|
||||||
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://v4.ident.me/")
|
||||||
ipv4Res=$(curl -fsS "http://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
|
||||||
ipv4Changed=false;
|
ipv4Changed=false;
|
||||||
|
|
Loading…
Reference in a new issue