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
4f386663
Commit
4f386663
authored
Dec 05, 2021
by
neilpang
Committed by
neil
Jan 06, 2022
Browse files
fix for OpenBSD7
https://github.com/acmesh-official/acme.sh/issues/3833
parent
eaae0547
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
4f386663
...
...
@@ -4196,7 +4196,12 @@ _match_issuer() {
#ip
_isIPv4
()
{
for
seg
in
$(
echo
"
$1
"
|
tr
'.'
' '
)
;
do
if
[
$seg
-ge
0
]
2>/dev/null
&&
[
$seg
-le
255
]
2>/dev/null
;
then
_debug2 seg
"
$seg
"
if
[
"
$(
echo
"
$seg
"
|
tr
-d
[
0-9]
)
"
]
;
then
#not all number
return
1
fi
if
[
$seg
-ge
0
]
&&
[
$seg
-lt
256
]
;
then
continue
fi
return
1
...
...
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