mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 06:10:42 +01:00
Correctly handle *C actions in arprules.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
c157228f7d
commit
eb3b47ae24
@ -120,7 +120,7 @@ sub process_arprule() {
|
||||
);
|
||||
|
||||
if ( supplied $newaddr ) {
|
||||
fatal_error "The $action ACTION does not allow a new address" unless $action =~ /^SNAT|DNAT|SMAT|DMAT$/;
|
||||
fatal_error "The $action ACTION does not allow a new address" unless $action =~ /^(?:SNAT|DNAT|SMAT|DMAT)C?$/;
|
||||
} else {
|
||||
fatal_error "The $action ACTION requires a new address" if $action =~ /^SNAT|DNAT|SMAT|DMAT$/;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user