mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-20 05:11:43 +00:00
World4You redirect fix
This commit is contained in:
parent
1e3bb1f02b
commit
bfccf29ccf
@ -45,8 +45,8 @@ dns_world4you_add() {
|
|||||||
return 3
|
return 3
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_ORIG_ACME_CURL="$_ACME_CURL"
|
ACME_HTTP_NO_REDIRECTS=1
|
||||||
_ACME_CURL=$(echo "$_ACME_CURL" | sed 's/ -L / /')
|
_resethttp
|
||||||
|
|
||||||
body="AddDnsRecordForm[name]=$record&AddDnsRecordForm[dnsType][type]=TXT&\
|
body="AddDnsRecordForm[name]=$record&AddDnsRecordForm[dnsType][type]=TXT&\
|
||||||
AddDnsRecordForm[value]=$value&AddDnsRecordForm[aktivPaket]=$paketnr&AddDnsRecordForm[uniqueFormIdDP]=$formiddp&\
|
AddDnsRecordForm[value]=$value&AddDnsRecordForm[aktivPaket]=$paketnr&AddDnsRecordForm[uniqueFormIdDP]=$formiddp&\
|
||||||
@ -54,7 +54,8 @@ AddDnsRecordForm[uniqueFormIdTTL]=$formidttl&AddDnsRecordForm[_token]=$form_toke
|
|||||||
_info "Adding record..."
|
_info "Adding record..."
|
||||||
ret=$(_post "$body" "$WORLD4YOU_API/$paketnr/dns" '' POST 'application/x-www-form-urlencoded')
|
ret=$(_post "$body" "$WORLD4YOU_API/$paketnr/dns" '' POST 'application/x-www-form-urlencoded')
|
||||||
|
|
||||||
_ACME_CURL="$_ORIG_ACME_CURL"
|
unset ACME_HTTP_NO_REDIRECTS
|
||||||
|
_resethttp
|
||||||
|
|
||||||
if grep '302' >/dev/null <"$HTTP_HEADER"; then
|
if grep '302' >/dev/null <"$HTTP_HEADER"; then
|
||||||
return 0
|
return 0
|
||||||
@ -104,8 +105,8 @@ dns_world4you_rm() {
|
|||||||
recordid=$(printf "TXT:%s.:\"%s\"" "$fqdn" "$value" | _base64)
|
recordid=$(printf "TXT:%s.:\"%s\"" "$fqdn" "$value" | _base64)
|
||||||
_debug recordid "$recordid"
|
_debug recordid "$recordid"
|
||||||
|
|
||||||
_ORIG_ACME_CURL="$_ACME_CURL"
|
ACME_HTTP_NO_REDIRECTS=1
|
||||||
_ACME_CURL=$(echo "$_ACME_CURL" | sed 's/ -L / /')
|
_resethttp
|
||||||
|
|
||||||
body="DeleteDnsRecordForm[recordId]=$recordid&DeleteDnsRecordForm[aktivPaket]=$paketnr&\
|
body="DeleteDnsRecordForm[recordId]=$recordid&DeleteDnsRecordForm[aktivPaket]=$paketnr&\
|
||||||
DeleteDnsRecordForm[uniqueFormIdDP]=$formiddp&DeleteDnsRecordForm[uniqueFormIdTTL]=$formidttl&\
|
DeleteDnsRecordForm[uniqueFormIdDP]=$formiddp&DeleteDnsRecordForm[uniqueFormIdTTL]=$formidttl&\
|
||||||
@ -113,7 +114,8 @@ DeleteDnsRecordForm[_token]=$form_token"
|
|||||||
_info "Removing record..."
|
_info "Removing record..."
|
||||||
ret=$(_post "$body" "$WORLD4YOU_API/$paketnr/deleteRecord" '' POST 'application/x-www-form-urlencoded')
|
ret=$(_post "$body" "$WORLD4YOU_API/$paketnr/deleteRecord" '' POST 'application/x-www-form-urlencoded')
|
||||||
|
|
||||||
_ACME_CURL="$_ORIG_ACME_CURL"
|
unset ACME_HTTP_NO_REDIRECTS
|
||||||
|
_resethttp
|
||||||
|
|
||||||
if grep '302' >/dev/null <"$HTTP_HEADER"; then
|
if grep '302' >/dev/null <"$HTTP_HEADER"; then
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user