fix for OpenBSD7

https://github.com/acmesh-official/acme.sh/issues/3833
This commit is contained in:
neilpang committed 2021-12-05 18:23:19 +08:00
1 parent ccd3d96942
commit f66d9e1a22
1 file changed
+6 -1
+6 -1
View File
@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.