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
|
||||
|
||||
if valid_ipv6 "$DIP_CUR_IP"; then
|
||||
log "Updating Namecheap DNS IPv6 Record for ${DIP_RECORD}.${DIP_DOMAIN}"
|
||||
_update_dns_namecheap "$DIP_RECORD" "$DIP_DOMAIN" "$DIP_TOKEN" "${DIP_CUR_IP}"
|
||||
unset DIP_TOKEN
|
||||
exit $?
|
||||
log "Namecheap API does not support IPv6 at this time."
|
||||
exit 0
|
||||
#log "Updating Namecheap DNS IPv6 Record for ${DIP_RECORD}.${DIP_DOMAIN}"
|
||||
#_update_dns_namecheap "$DIP_RECORD" "$DIP_DOMAIN" "$DIP_TOKEN" "${DIP_CUR_IP}"
|
||||
#unset DIP_TOKEN
|
||||
#exit $?
|
||||
fi
|
||||
|
|
|
@ -361,7 +361,7 @@ check-update() {
|
|||
case $status in
|
||||
0) if [[ "$currentip" != "$externalip" ]]; then
|
||||
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
|
||||
log "Agents ran successfully"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue