Fix valid_ipv4addr().
Fix first byte check.
This commit is contained in:
parent
24d6e13f02
commit
dd587ca6c3
@ -46,7 +46,8 @@ valid_ipv4addr()
|
||||
i=$(($i+1))
|
||||
done
|
||||
|
||||
[ $i -eq 2 ] 2>/dev/null ||
|
||||
[ $i -eq 2 -a \
|
||||
"$byte" -gt 0 -a "$byte" -lt 255 ] 2>/dev/null ||
|
||||
return 1
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user