mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 01:37:59 +02:00
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:
parent
27e9f4e706
commit
9be975933b
@ -888,7 +888,7 @@ sub compiler {
|
|||||||
${$ref->{store}} = $val;
|
${$ref->{store}} = $val;
|
||||||
}
|
}
|
||||||
|
|
||||||
reinitialize if ++$reused || $family == F_IPV6;
|
reinitialize if $reused++ || $family == F_IPV6;
|
||||||
|
|
||||||
if ( $directory ne '' ) {
|
if ( $directory ne '' ) {
|
||||||
fatal_error "$directory is not an existing directory" unless -d $directory;
|
fatal_error "$directory is not an existing directory" unless -d $directory;
|
||||||
|
@ -2044,7 +2044,7 @@ sub get_configuration( $ ) {
|
|||||||
if ( $family == F_IPV4 ) {
|
if ( $family == F_IPV4 ) {
|
||||||
check_trivalue ( 'LOG_MARTIANS', 'on' );
|
check_trivalue ( 'LOG_MARTIANS', 'on' );
|
||||||
} else {
|
} 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';
|
fatal_error "LOG_MARTIANS=On is not supported in IPv6" if $config{LOG_MARTIANS} eq 'on';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -360,7 +360,7 @@ sub add_a_provider( $$$$$$$$ ) {
|
|||||||
if ( $loose ) {
|
if ( $loose ) {
|
||||||
if ( $config{DELETE_THEN_ADD} ) {
|
if ( $config{DELETE_THEN_ADD} ) {
|
||||||
emit ( "\nfind_interface_addresses $interface | while read address; do",
|
emit ( "\nfind_interface_addresses $interface | while read address; do",
|
||||||
" qt ip $family rule del from $address",
|
" qt ip -$family rule del from $address",
|
||||||
'done'
|
'done'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user