Correct validation of 4in6 addresses

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2011-10-25 06:19:34 -07:00
parent 3258806f6c
commit c319921365

View File

@ -530,7 +530,7 @@ sub valid_6address( $ ) {
return 0 unless valid_4address pop @address; return 0 unless valid_4address pop @address;
$max = 6; $max = 6;
$address = join ':', @address; $address = join ':', @address;
return 1 if @address eq ':'; return 1 if $address eq ':';
} else { } else {
$max = 8; $max = 8;
} }