neil committed 2026-07-03 19:38:42 +08:00
1 parent 1241649501
commit eabd23a551
1 file changed
+8
+8
View File
@@ -264,9 +264,17 @@ _set_namecheap_TXT() {
_debug hosts "$hosts"
if [ -z "$hosts" ]; then
# An empty host list is only acceptable when the API positively confirms
# a successful getHosts reply: setHosts below REPLACES all records, so
# proceeding on a malformed/unparsed response would wipe the whole zone.
# https://github.com/acmesh-official/acme.sh/issues/6963
if _contains "$response" "Status=\"OK\"" && _contains "$response" "DomainDNSGetHostsResult"; then
_debug "No existing host records, adding the TXT record as the first one"
else
_err "Hosts not found"
return 1
fi
fi
_namecheap_reset_hostList
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.