Browse Source

World4You fix for no redirects

pull/3261/head
Lorenz Stechauner 4 years ago
parent
commit
342b48105f
  1. 6
      dnsapi/dns_world4you.sh

6
dnsapi/dns_world4you.sh

@ -45,8 +45,8 @@ dns_world4you_add() {
return 3 return 3
fi fi
ACME_HTTP_NO_REDIRECTS=1
_resethttp _resethttp
ACME_HTTP_NO_REDIRECTS=1
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,6 @@ 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')
unset ACME_HTTP_NO_REDIRECTS
_resethttp _resethttp
if grep '302' >/dev/null <"$HTTP_HEADER"; then if grep '302' >/dev/null <"$HTTP_HEADER"; then
@ -105,8 +104,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"
ACME_HTTP_NO_REDIRECTS=1
_resethttp _resethttp
ACME_HTTP_NO_REDIRECTS=1
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&\
@ -114,7 +113,6 @@ 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')
unset ACME_HTTP_NO_REDIRECTS
_resethttp _resethttp
if grep '302' >/dev/null <"$HTTP_HEADER"; then if grep '302' >/dev/null <"$HTTP_HEADER"; then

Loading…
Cancel
Save