forked from extern/shorewall_code
Another fix for *C actions in arprules.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
5883bc3f50
commit
dece73f7b6
@ -122,7 +122,7 @@ sub process_arprule() {
|
|||||||
if ( supplied $newaddr ) {
|
if ( supplied $newaddr ) {
|
||||||
fatal_error "The $action ACTION does not allow a new address" unless $action =~ /^(?:SNAT|DNAT|SMAT|DMAT)C?$/;
|
fatal_error "The $action ACTION does not allow a new address" unless $action =~ /^(?:SNAT|DNAT|SMAT|DMAT)C?$/;
|
||||||
} else {
|
} else {
|
||||||
fatal_error "The $action ACTION requires a new address" if $action =~ /^SNAT|DNAT|SMAT|DMAT$/;
|
fatal_error "The $action ACTION requires a new address" if $action =~ /^(?:SNAT|DNAT|SMAT|DMAT)C?$/;
|
||||||
}
|
}
|
||||||
|
|
||||||
my $function = $functions{$action};
|
my $function = $functions{$action};
|
||||||
|
Loading…
Reference in New Issue
Block a user