Handle IPv6 /32 networks correctly.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-03-21 11:30:59 -07:00
parent b27e5f4378
commit 3ac6835650

View File

@ -690,7 +690,7 @@ sub validate_6net( $$ ) {
assert( ! $allow_name );
( $net , $vlsm );
} elsif ( valid_6address ( $net ) ) {
$vlsm == 32 ? $net : "$net/$vlsm";
$vlsm == 128 ? $net : "$net/$vlsm";
} else {
$net;
}