Fix a few more bugs

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@9112 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2008-12-18 16:14:40 +00:00
parent 27e9f4e706
commit 9be975933b
3 changed files with 3 additions and 3 deletions

View File

@ -888,7 +888,7 @@ sub compiler {
${$ref->{store}} = $val;
}
reinitialize if ++$reused || $family == F_IPV6;
reinitialize if $reused++ || $family == F_IPV6;
if ( $directory ne '' ) {
fatal_error "$directory is not an existing directory" unless -d $directory;

View File

@ -2044,7 +2044,7 @@ sub get_configuration( $ ) {
if ( $family == F_IPV4 ) {
check_trivalue ( 'LOG_MARTIANS', 'on' );
} else {
check_trivalue ( 'LOG_MARTIANS', 'ff' );
check_trivalue ( 'LOG_MARTIANS', 'off' );
fatal_error "LOG_MARTIANS=On is not supported in IPv6" if $config{LOG_MARTIANS} eq 'on';
}

View File

@ -360,7 +360,7 @@ sub add_a_provider( $$$$$$$$ ) {
if ( $loose ) {
if ( $config{DELETE_THEN_ADD} ) {
emit ( "\nfind_interface_addresses $interface | while read address; do",
" qt ip $family rule del from $address",
" qt ip -$family rule del from $address",
'done'
);
}