forked from extern/shorewall_code
Allow wildcard logical names in COPY column
This commit is contained in:
parent
6987cd15c5
commit
06d3b2c692
@ -175,6 +175,10 @@ sub copy_and_edit_table( $$$$ ) {
|
|||||||
# Map physical names to logical names in $copy
|
# Map physical names to logical names in $copy
|
||||||
#
|
#
|
||||||
$copy = join( '|' , map( physical_name($_) , split( ',' , $copy ) ) );
|
$copy = join( '|' , map( physical_name($_) , split( ',' , $copy ) ) );
|
||||||
|
#
|
||||||
|
# Shell and iptables use a different wildcard character
|
||||||
|
#
|
||||||
|
$copy =~ s/\+/*/;
|
||||||
|
|
||||||
if ( $realm ) {
|
if ( $realm ) {
|
||||||
emit ( "\$IP -$family route show table $duplicate | sed -r 's/ realm [[:alnum:]_]+//' | while read net route; do" )
|
emit ( "\$IP -$family route show table $duplicate | sed -r 's/ realm [[:alnum:]_]+//' | while read net route; do" )
|
||||||
|
Loading…
Reference in New Issue
Block a user