Browse Source

Adapting to Cloudflare's new response

Mason 2 weeks ago
parent
commit
c950b67e4b
1 changed files with 3 additions and 1 deletions
  1. 3 1
      dnsapi/dns_cf.sh

+ 3 - 1
dnsapi/dns_cf.sh

@@ -92,7 +92,9 @@ dns_cf_add() {
     if _contains "$response" "$txtvalue"; then
       _info "Added, OK"
       return 0
-    elif _contains "$response" "The record already exists"; then
+    elif _contains "$response" "The record already exists" \
+      || _contains "$response" "An identical record already exists." \
+      || _contains "$response" '"code":81058'; then
       _info "Already exists, OK"
       return 0
     else