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
58642286
Commit
58642286
authored
Oct 25, 2019
by
Rolph Haspers
Browse files
Fix for SC2039/SC2086
parent
6d62ae22
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_leaseweb.sh
View file @
58642286
...
...
@@ -88,7 +88,7 @@ _get_root() {
i
=
$(
_math
"
$i
"
- 1
)
while
true
;
do
h
=
$(
printf
"%s"
"
$rdomain
"
|
cut
-d
.
-f
$i
-100
)
h
=
$(
printf
"%s"
"
$rdomain
"
|
cut
-d
.
-f
"
$i
"
-100
)
_debug h
"
$h
"
if
[
-z
"
$h
"
]
;
then
return
1
#not valid domain
...
...
@@ -102,7 +102,7 @@ _get_root() {
fi
fi
i
=
$(
_math
"
$i
"
- 1
)
if
((
i < 2
))
;
then
if
$
((
i <
2
))
;
then
return
1
#not found, no need to check _acme-challenge.sub.domain in leaseweb api.
fi
done
...
...
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