Skip to content

Commit c950b67

Browse files
authored
Adapting to Cloudflare's new response
1 parent 4bfc5aa commit c950b67

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dnsapi/dns_cf.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ dns_cf_add() {
9292
if _contains "$response" "$txtvalue"; then
9393
_info "Added, OK"
9494
return 0
95-
elif _contains "$response" "The record already exists"; then
95+
elif _contains "$response" "The record already exists" \
96+
|| _contains "$response" "An identical record already exists." \
97+
|| _contains "$response" '"code":81058'; then
9698
_info "Already exists, OK"
9799
return 0
98100
else

0 commit comments

Comments
 (0)