forked from extern/shorewall_code
Fix capabilities test for PERSISTENT_SNAT
This commit is contained in:
parent
6d2809f154
commit
d8cc9c5c92
@ -215,7 +215,7 @@ sub process_one_masq( )
|
|||||||
$addresses =~ s/:persistent$// and $persistent = '--persistent ';
|
$addresses =~ s/:persistent$// and $persistent = '--persistent ';
|
||||||
$addresses =~ s/:random$// and $randomize = '--random ';
|
$addresses =~ s/:random$// and $randomize = '--random ';
|
||||||
|
|
||||||
require_capability 'PERSISTENT_SNAT', ':random', 's' if $randomize;
|
require_capability 'PERSISTENT_SNAT', ':persistent', 's' if $persistent;
|
||||||
|
|
||||||
if ( $addresses =~ /^SAME/ ) {
|
if ( $addresses =~ /^SAME/ ) {
|
||||||
fatal_error "The SAME target is no longer supported";
|
fatal_error "The SAME target is no longer supported";
|
||||||
|
Loading…
Reference in New Issue
Block a user