Unverified Commit 4dcd1f3e authored by neil's avatar neil Committed by GitHub
Browse files

Merge pull request #2233 from Neilpang/dev

fix https://github.com/Neilpang/acme.sh/issues/2195
parents ba4bd3ed e46b392a
...@@ -58,7 +58,7 @@ dns_cf_add() { ...@@ -58,7 +58,7 @@ dns_cf_add() {
# if [ "$count" = "0" ]; then # if [ "$count" = "0" ]; then
_info "Adding record" _info "Adding record"
if _cf_rest POST "zones/$_domain_id/dns_records" "{\"type\":\"TXT\",\"name\":\"$fulldomain\",\"content\":\"$txtvalue\",\"ttl\":120}"; then if _cf_rest POST "zones/$_domain_id/dns_records" "{\"type\":\"TXT\",\"name\":\"$fulldomain\",\"content\":\"$txtvalue\",\"ttl\":120}"; then
if _contains "$response" "$fulldomain"; then if _contains "$response" "$txtvalue"; then
_info "Added, OK" _info "Added, OK"
return 0 return 0
elif _contains "$response" "The record already exists"; then elif _contains "$response" "The record already exists"; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment