Fix capabilities test for PERSISTENT_SNAT

This commit is contained in:
Tom Eastep 2009-08-17 08:07:58 -07:00
parent 6d2809f154
commit d8cc9c5c92

View File

@ -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";