Browse Source
Merge pull request #3906 from NerLOR/master
Adapt dns_world4you to new world4you website behaviour
pull/3928/head
neil
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
dnsapi/dns_world4you.sh
|
|
@ -24,7 +24,7 @@ dns_world4you_add() { |
|
|
|
fi |
|
|
|
|
|
|
|
export _H1="Cookie: W4YSESSID=$sessid" |
|
|
|
form=$(_get "$WORLD4YOU_API/dashboard/paketuebersicht") |
|
|
|
form=$(_get "$WORLD4YOU_API/") |
|
|
|
_get_paketnr "$fqdn" "$form" |
|
|
|
paketnr="$PAKETNR" |
|
|
|
if [ -z "$paketnr" ]; then |
|
|
@ -87,7 +87,7 @@ dns_world4you_rm() { |
|
|
|
fi |
|
|
|
|
|
|
|
export _H1="Cookie: W4YSESSID=$sessid" |
|
|
|
form=$(_get "$WORLD4YOU_API/dashboard/paketuebersicht") |
|
|
|
form=$(_get "$WORLD4YOU_API/") |
|
|
|
_get_paketnr "$fqdn" "$form" |
|
|
|
paketnr="$PAKETNR" |
|
|
|
if [ -z "$paketnr" ]; then |
|
|
@ -184,7 +184,7 @@ _get_paketnr() { |
|
|
|
fqdn="$1" |
|
|
|
form="$2" |
|
|
|
|
|
|
|
domains=$(echo "$form" | grep '^ *[A-Za-z0-9_\.-]*\.[A-Za-z0-9_-]*$' | sed 's/^ *\(.*\)$/\1/') |
|
|
|
domains=$(echo "$form" | grep 'header-paket-domain' | sed 's/<[^>]*>//g' | sed 's/^.*>\([^>]*\)$/\1/') |
|
|
|
domain='' |
|
|
|
for domain in $domains; do |
|
|
|
if _contains "$fqdn" "$domain\$"; then |
|
|
|