valid_ipv4addr: Allow 255 in a last byte
0 is already allowed since commit f59a68de59fbc2b5d00ca3e416bf85df657cae10. See ALT bug #30084 for details.
This commit is contained in:
parent
8c041737a4
commit
b6a6bc8063
@ -36,7 +36,7 @@ valid_ipv4addr()
|
||||
byte="${ipaddr##*.}"
|
||||
ipaddr="${ipaddr%.$byte}"
|
||||
|
||||
[ "$byte" -ge 0 -a "$byte" -lt 255 ] 2>/dev/null ||
|
||||
[ "$byte" -ge 0 -a "$byte" -le 255 ] 2>/dev/null ||
|
||||
return 1
|
||||
|
||||
while [ $i -lt 3 ]; do
|
||||
|
Loading…
x
Reference in New Issue
Block a user