mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-03 03:59:16 +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 ) {
|
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 {
|
} 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$/;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user