Fixing bugs in updated API
This commit is contained in:
parent
0353a19ded
commit
d22fa88fac
2 changed files with 7 additions and 5 deletions
|
@ -87,8 +87,10 @@ if valid_ipv4 "$DIP_CUR_IP"; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if valid_ipv6 "$DIP_CUR_IP"; then
|
if valid_ipv6 "$DIP_CUR_IP"; then
|
||||||
log "Updating Namecheap DNS IPv6 Record for ${DIP_RECORD}.${DIP_DOMAIN}"
|
log "Namecheap API does not support IPv6 at this time."
|
||||||
_update_dns_namecheap "$DIP_RECORD" "$DIP_DOMAIN" "$DIP_TOKEN" "${DIP_CUR_IP}"
|
exit 0
|
||||||
unset DIP_TOKEN
|
#log "Updating Namecheap DNS IPv6 Record for ${DIP_RECORD}.${DIP_DOMAIN}"
|
||||||
exit $?
|
#_update_dns_namecheap "$DIP_RECORD" "$DIP_DOMAIN" "$DIP_TOKEN" "${DIP_CUR_IP}"
|
||||||
|
#unset DIP_TOKEN
|
||||||
|
#exit $?
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -361,7 +361,7 @@ check-update() {
|
||||||
case $status in
|
case $status in
|
||||||
0) if [[ "$currentip" != "$externalip" ]]; then
|
0) if [[ "$currentip" != "$externalip" ]]; then
|
||||||
log "Updates found: $externalip is not $currentip"
|
log "Updates found: $externalip is not $currentip"
|
||||||
log "Running Agents for $recordi${domain:+."$domain"}"
|
log "Running Agents for ${record}${domain:+."$domain"}"
|
||||||
if run-update "$currentip" "$externalip" "$record" "$domain"; then
|
if run-update "$currentip" "$externalip" "$record" "$domain"; then
|
||||||
log "Agents ran successfully"
|
log "Agents ran successfully"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue