Fix validation of IPv6 addresses

This commit is contained in:
Jamie Cameron
2009-02-13 05:58:46 +00:00
parent 20ffc9fd80
commit 3190c60a27
3 changed files with 8 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ else {
@addrs = split(/\s+/, $in{'addr'});
foreach $a (@addrs) {
gethostbyname($a) || &check_ipaddress($a) ||
&check_ip6address($a) ||
&check_apache_ip6address($a) ||
&error(&text('cvirt_eaddr2', $a));
}
$addr = $in{'addr'};