Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
3fc3c02a
Unverified
Commit
3fc3c02a
authored
Sep 07, 2022
by
neil
Committed by
GitHub
Sep 07, 2022
Browse files
Merge pull request #4295 from NerLOR/master
Update dns_world4you
parents
874ddf9a
5d6d0c61
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_world4you.sh
View file @
3fc3c02a
...
...
@@ -195,7 +195,7 @@ _get_paketnr() {
fqdn
=
"
$1
"
form
=
"
$2
"
domains
=
$(
echo
"
$form
"
|
grep
'
header-paket-domain
'
|
sed
's/<[^>]*>//g'
|
sed
's/^.*>\([^>]*\)$/\1/'
)
domains
=
$(
echo
"
$form
"
|
grep
'
<ul class="nav header-paket-list">'
|
sed
's/<li/\n<li/g
'
|
sed
's/<[^>]*>/
/g'
|
sed
's/^.*>\([^>]*\)$/\1/'
)
domain
=
''
for
domain
in
$domains
;
do
if
_contains
"
$fqdn
"
"
$domain
\$
"
;
then
...
...
@@ -210,7 +210,7 @@ _get_paketnr() {
TLD
=
"
$domain
"
_debug domain
"
$domain
"
RECORD
=
$(
echo
"
$fqdn
"
|
cut
-c
"1-
$((${#
fqdn
}
-
${#
TLD
}
-
1
))
"
)
PAKETNR
=
$(
echo
"
$
form
"
|
grep
"
data-textfilter=
\"
.*
$domain
"
|
_tail_n 1 |
sed
"s|.*
$WORLD4YOU_API
/
\\
([0-9]*
\\
)/.*|
\\
1|"
)
PAKETNR
=
$(
echo
"
$
domains
"
|
grep
"
$domain
"
|
sed
's/^[^,]*, *\([0-9]*\).*$/\1/'
)
return
0
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment