mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-15 04:04:10 +01:00
Fix test for duplicate provider mark (again)
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6284 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
18a7ce4f1d
commit
eda48ec9cf
@ -661,9 +661,8 @@ sub finish_section ( $ ) {
|
||||
sub set_mss1( $$ ) {
|
||||
my ( $chain, $mss ) = @_;
|
||||
my $chainref = ensure_chain 'filter', $chain;
|
||||
my $policy = $chainref->{policy};
|
||||
|
||||
if ( "$policy" ne 'NONE' ) {
|
||||
if ( $chainref->{policy} ne 'NONE' ) {
|
||||
insert_rule $chainref, 1, "-p tcp --tcp-flags SYN,RST SYN -j TCPMSS --set-mss $mss"
|
||||
}
|
||||
}
|
||||
|
@ -207,8 +207,8 @@ sub setup_providers() {
|
||||
fatal_error "Invalid Mark Value ($mark) with HIGH_ROUTE_MARKS=No" if ! $config{HIGH_ROUTE_MARKS};
|
||||
}
|
||||
|
||||
for my $num ( values %providers ) {
|
||||
fatal_error "Duplicate mark value ( $mark )" if $num == $val;
|
||||
for my $providerref ( values %providers ) {
|
||||
fatal_error "Duplicate mark value ( $mark )" if $providerref->{mark} == $val;
|
||||
}
|
||||
|
||||
my $pref = 10000 + $val;
|
||||
|
Loading…
Reference in New Issue
Block a user