forked from extern/shorewall_code
Allow <zone>:[<address>] in rules
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8990 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
e82d46f50f
commit
72f65a6e39
@ -1986,7 +1986,11 @@ sub expand_rule( $$$$$$$$$$$ )
|
||||
$iiface = $1;
|
||||
$inets = $2;
|
||||
} elsif ( $source =~ /:/ ) {
|
||||
$inets = $source;
|
||||
if ( $source =~ /^\[(.+)\]$/ ) {
|
||||
$inets = $1;
|
||||
} else {
|
||||
$inets = $source;
|
||||
}
|
||||
} elsif ( $source =~ /\+|~|\..*\./ ) {
|
||||
$inets = $source;
|
||||
} else {
|
||||
@ -2069,7 +2073,11 @@ sub expand_rule( $$$$$$$$$$$ )
|
||||
$diface = $1;
|
||||
$dnets = $2;
|
||||
} elsif ( $dest =~ /:/ ) {
|
||||
$dnets = $dest;
|
||||
if ( $dest =~ /^\[(.+)\]$/ ) {
|
||||
$dnets = $1;
|
||||
} else {
|
||||
$dnets = $dest;
|
||||
}
|
||||
} elsif ( $dest =~ /\+|~|\..*\./ ) {
|
||||
$dnets = $dest;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user