|
|
@ -50,6 +50,7 @@ done
|
|
|
|
# shellcheck source=he-ddnsrc
|
|
|
|
# shellcheck source=he-ddnsrc
|
|
|
|
. "$config" || die $LINENO
|
|
|
|
. "$config" || die $LINENO
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [[ -n "${DOMAINS4[*]}" ]]; then
|
|
|
|
ipv4="$(curl -sSL4 "$ip_host")" || die $LINENO
|
|
|
|
ipv4="$(curl -sSL4 "$ip_host")" || die $LINENO
|
|
|
|
for domain in "${!DOMAINS4[@]}"; do
|
|
|
|
for domain in "${!DOMAINS4[@]}"; do
|
|
|
|
printf "%s :: " "$domain"
|
|
|
|
printf "%s :: " "$domain"
|
|
|
@ -57,7 +58,9 @@ for domain in "${!DOMAINS4[@]}"; do
|
|
|
|
curl -sSL4 "$url" -d "hostname=$domain" -d "password=$key" -d "myip=$ipv4" || die $LINENO
|
|
|
|
curl -sSL4 "$url" -d "hostname=$domain" -d "password=$key" -d "myip=$ipv4" || die $LINENO
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [[ -n "${DOMAINS6[*]}" ]]; then
|
|
|
|
ipv6="$(curl -sSL6 "$ip_host")" || die $LINENO
|
|
|
|
ipv6="$(curl -sSL6 "$ip_host")" || die $LINENO
|
|
|
|
for domain in "${!DOMAINS6[@]}"; do
|
|
|
|
for domain in "${!DOMAINS6[@]}"; do
|
|
|
|
printf "%s :: " "$domain"
|
|
|
|
printf "%s :: " "$domain"
|
|
|
@ -65,3 +68,4 @@ for domain in "${!DOMAINS6[@]}"; do
|
|
|
|
curl -sSL6 "$url" -d "hostname=$domain" -d "password=$key" -d "myip=$ipv6" || die $LINENO
|
|
|
|
curl -sSL6 "$url" -d "hostname=$domain" -d "password=$key" -d "myip=$ipv6" || die $LINENO
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
fi
|
|
|
|