Skip to content

Commit 90e6c9b

Browse files
authored
Merge pull request #6629 from WongIong/patch-1
Adapting to Cloudflare's new response
2 parents 6715320 + a9f96bf commit 90e6c9b

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)