mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-24 11:41:26 +02:00
Correct tcrules update
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
af2b7910bd
commit
f5c6a6fe82
@ -3252,7 +3252,10 @@ sub setup_tc( $ ) {
|
||||
|
||||
close $mangle, directive_callback( 0 ) if $tcrules;
|
||||
|
||||
} elsif ( $tcrules && -f ( my $fn = find_file( 'tcrules' ) ) ) {
|
||||
} elsif ( $tcrules ) {
|
||||
close $mangle, directive_callback( 0 ) if $tcrules;
|
||||
|
||||
if ( -f ( my $fn = find_file( 'tcrules' ) ) ) {
|
||||
if ( unlink $fn ) {
|
||||
warning_message "Empty tcrules file ($fn) removed";
|
||||
} else {
|
||||
@ -3260,6 +3263,7 @@ sub setup_tc( $ ) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( my $fn = open_file( 'mangle', 1, 1 ) ) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user