From 778f8d4ab6202b5792919e0f66b23dba80fc21da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Sch=C3=A4ferdiek?= Date: Sat, 21 Mar 2020 21:14:27 +0100 Subject: [PATCH] Use ssl --- usr/local/bin/dynv6 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr/local/bin/dynv6 b/usr/local/bin/dynv6 index 1812b7e..999af9f 100644 --- a/usr/local/bin/dynv6 +++ b/usr/local/bin/dynv6 @@ -96,7 +96,7 @@ echo "Checking ${hostname}" if [ "${DYNV6_IPV6_ENABLED}" = "true" ]; then echo "Testing IPv6"; 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; if [ "${ipv6Res}" = "addresses unchanged" ]; then @@ -116,7 +116,7 @@ fi if [ "${DYNV6_IPV4_ENABLED}" = "true" ]; then echo "Testing IPv4"; 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; if [ "$ipv4Res" = "addresses unchanged" ]; then ipv4Changed=false; @@ -129,4 +129,4 @@ if [ "${DYNV6_IPV4_ENABLED}" = "true" ]; then echo -e "IPv4 for ${hostname} on host ${HOSTMACHINE} changed to ${ipv4Address}" | mailx -s "[dynv6 IPv4 ${HOSTMACHINE}] IPv4 changed for ${hostname}" "${DYNV6_MAIL_ADDRESS}" fi fi -fi \ No newline at end of file +fi