backend: Replace valid_ipv4() with valid_ipv4addr().
This commit is contained in:
parent
8ac8b31d81
commit
2da6f2efa3
@ -666,7 +666,7 @@ check_ip()
|
||||
local ipv="$2"
|
||||
|
||||
if [ "$ipv" = 4 ]; then
|
||||
valid_ipv4 "$ip"
|
||||
valid_ipv4addr "$ip"
|
||||
else
|
||||
valid_ipv6addr "$ip"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user