mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-23 16:13:18 +01:00
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/:random$// and $randomize = '--random ';
|
||||
|
||||
require_capability 'PERSISTENT_SNAT', ':random', 's' if $randomize;
|
||||
require_capability 'PERSISTENT_SNAT', ':persistent', 's' if $persistent;
|
||||
|
||||
if ( $addresses =~ /^SAME/ ) {
|
||||
fatal_error "The SAME target is no longer supported";
|
||||
|
Loading…
Reference in New Issue
Block a user