mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-12 17:31:47 +00:00
Add DNS API for ClouDNS
This commit is contained in:
parent
3b7fbcd0c3
commit
c7257e0a3c
@ -115,8 +115,7 @@ _dns_cloudns_get_zone_name() {
|
|||||||
zoneForCheck=$(printf "%s" "$1" | cut -d . -f $i-100)
|
zoneForCheck=$(printf "%s" "$1" | cut -d . -f $i-100)
|
||||||
|
|
||||||
if [ -z "$zoneForCheck" ]; then
|
if [ -z "$zoneForCheck" ]; then
|
||||||
# missing zone
|
return 1
|
||||||
return 1;
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_debug zoneForCheck $zoneForCheck
|
_debug zoneForCheck $zoneForCheck
|
||||||
@ -125,12 +124,12 @@ _dns_cloudns_get_zone_name() {
|
|||||||
|
|
||||||
if ! _contains "$response" "\"status\":\"Failed\""; then
|
if ! _contains "$response" "\"status\":\"Failed\""; then
|
||||||
echo $zoneForCheck
|
echo $zoneForCheck
|
||||||
return 0;
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
i=$(expr $i + 1)
|
i=$(expr $i + 1)
|
||||||
done
|
done
|
||||||
return 1;
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
_dns_cloudns_get_record_id () {
|
_dns_cloudns_get_record_id () {
|
||||||
@ -154,5 +153,5 @@ _dns_cloudns_http_api_call () {
|
|||||||
|
|
||||||
_debug response "$response"
|
_debug response "$response"
|
||||||
|
|
||||||
return 1;
|
return 1
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user