mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-25 00:53:49 +01:00
Handle IPv6 /32 networks correctly.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
b27e5f4378
commit
3ac6835650
@ -690,7 +690,7 @@ sub validate_6net( $$ ) {
|
|||||||
assert( ! $allow_name );
|
assert( ! $allow_name );
|
||||||
( $net , $vlsm );
|
( $net , $vlsm );
|
||||||
} elsif ( valid_6address ( $net ) ) {
|
} elsif ( valid_6address ( $net ) ) {
|
||||||
$vlsm == 32 ? $net : "$net/$vlsm";
|
$vlsm == 128 ? $net : "$net/$vlsm";
|
||||||
} else {
|
} else {
|
||||||
$net;
|
$net;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user