mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-08 00:34:04 +01:00
Suppress duplicate progress messages
This commit is contained in:
parent
c5667c7658
commit
f2cb2cca9e
@ -471,7 +471,7 @@ sub generate_script_3($) {
|
||||
fi
|
||||
EOF
|
||||
pop_indent;
|
||||
setup_forwarding( $family );
|
||||
setup_forwarding( $family , 1 );
|
||||
push_indent;
|
||||
emit<<'EOF';
|
||||
set_state "Started"
|
||||
@ -480,7 +480,7 @@ else
|
||||
if [ $COMMAND = refresh ]; then
|
||||
chainlist_reload
|
||||
EOF
|
||||
setup_forwarding( $family );
|
||||
setup_forwarding( $family , 0 );
|
||||
emit<<'EOF';
|
||||
run_refreshed_exit
|
||||
do_iptables -N shorewall
|
||||
@ -490,7 +490,7 @@ EOF
|
||||
restore_dynamic_rules
|
||||
conditionally_flush_conntrack
|
||||
EOF
|
||||
setup_forwarding( $family );
|
||||
setup_forwarding( $family , 0 );
|
||||
emit<<'EOF';
|
||||
run_start_exit
|
||||
do_iptables -N shorewall
|
||||
|
@ -192,8 +192,8 @@ sub setup_source_routing( $ ) {
|
||||
}
|
||||
}
|
||||
|
||||
sub setup_forwarding( $ ) {
|
||||
my $family = shift;
|
||||
sub setup_forwarding( $$ ) {
|
||||
my ( $family, $first ) = @_;
|
||||
|
||||
if ( $family == F_IPV4 ) {
|
||||
if ( $config{IP_FORWARDING} eq 'on' ) {
|
||||
@ -219,12 +219,11 @@ sub setup_forwarding( $ ) {
|
||||
my $interfaces = find_interfaces_by_option 'forward';
|
||||
|
||||
if ( @$interfaces ) {
|
||||
progress_message2 "$doing Interface forwarding...";
|
||||
|
||||
push_indent;
|
||||
push_indent;
|
||||
|
||||
save_progress_message 'Setting up IPv6 Interface Forwarding...';
|
||||
save_progress_message 'Setting up IPv6 Interface Forwarding...' if $first;
|
||||
|
||||
for my $interface ( @$interfaces ) {
|
||||
my $file = "/proc/sys/net/ipv6/conf/$interface/forwarding";
|
||||
|
Loading…
Reference in New Issue
Block a user