mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-04-29 22:52:43 +00:00
Fixed error in dns_mijn_host_rm
This commit is contained in:
parent
35f3b7088d
commit
3cfa882fe1
@ -39,7 +39,7 @@ dns_mijn_host_add() {
|
||||
_debug "Add TXT record"
|
||||
|
||||
# Build the payload for the API
|
||||
data="{\"type\":\"TXT\",\"name\":\"$fulldomain.\",\"value\":\"$txtvalue\",\"ttl\":120}"
|
||||
data="{\"type\":\"TXT\",\"name\":\"$fulldomain.\",\"value\":\"$txtvalue\",\"ttl\":300}"
|
||||
|
||||
export _H1="API-Key: $MIJN_HOST_API_KEY"
|
||||
export _H2="Content-Type: application/json"
|
||||
@ -95,7 +95,7 @@ dns_mijn_host_rm() {
|
||||
return 1
|
||||
fi
|
||||
|
||||
_debug "Removing TXT record"
|
||||
_debug "Removing TXT record" "$txtvalue"
|
||||
|
||||
# Build the payload for the API
|
||||
export _H1="API-Key: $MIJN_HOST_API_KEY"
|
||||
@ -105,7 +105,7 @@ dns_mijn_host_rm() {
|
||||
api_url="$MIJN_HOST_API/domains/$_domain/dns"
|
||||
|
||||
# Get current records
|
||||
response="$(_get "$api_url")"
|
||||
get_response="$(_get "$api_url")"
|
||||
|
||||
_debug "Get current records response:" "$response"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user