Browse Source

Fixed TXT record name in dns_desec.sh

Fix for the FQDN being truncated in the TXT record name being generated for the DNS-01 challenge at DESEC.io. See https://github.com/acmesh-official/acme.sh/issues/2180#issuecomment-2267646131 for details.
pull/5239/head
JNail 3 months ago
committed by GitHub
parent
commit
4258403ffb
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      dnsapi/dns_desec.sh

2
dnsapi/dns_desec.sh

@ -59,7 +59,7 @@ dns_desec_add() {
fi fi
_debug txtvalues "$txtvalues" _debug txtvalues "$txtvalues"
_info "Adding record" _info "Adding record"
body="[{\"subname\":\"$_sub_domain\", \"type\":\"TXT\", \"records\":[$txtvalues], \"ttl\":3600}]"
body="[{\"subname\":\"$_sub_domain\":\"$_domain\", \"type\":\"TXT\", \"records\":[$txtvalues], \"ttl\":3600}]"
if _desec_rest PUT "$REST_API/$_domain/rrsets/" "$body"; then if _desec_rest PUT "$REST_API/$_domain/rrsets/" "$body"; then
if _contains "$response" "$txtvalue"; then if _contains "$response" "$txtvalue"; then

Loading…
Cancel
Save