forked from extern/shorewall_code
Allow IPv6 DNS names in net contexts
This commit is contained in:
parent
d3d21d4d18
commit
9d85d0ff7a
@ -548,6 +548,8 @@ sub normalize_6addr( $ ) {
|
||||
}
|
||||
|
||||
$addr =~ s/::/:0:/;
|
||||
$addr =~ s/:0+/:0/g;
|
||||
$addr =~ s/^0+:/0:/;
|
||||
|
||||
$addr;
|
||||
}
|
||||
@ -573,7 +575,7 @@ sub validate_6range( $$ ) {
|
||||
}
|
||||
|
||||
sub validate_6host( $$ ) {
|
||||
my ( $host, $allow_name ) = $_[0];
|
||||
my ( $host, $allow_name ) = @_;
|
||||
|
||||
if ( $host =~ /^(.*:.*)-(.*:.*)$/ ) {
|
||||
validate_6range $1, $2;
|
||||
|
Loading…
Reference in New Issue
Block a user