mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-24 08:33:40 +01:00
Fix CLAMPMSS handling
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5867 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
57d1a5612f
commit
44268f76aa
@ -1670,7 +1670,7 @@ sub generate_matrix() {
|
||||
|
||||
sub setup_mss( $ ) {
|
||||
my $clampmss = $_[0];
|
||||
my $option = "\Lclampmss" eq 'yes' ? '--clamp-mss-to-pmtu' : '--set-mss $clampmss';
|
||||
my $option = "\L$clampmss" eq 'yes' ? '--clamp-mss-to-pmtu' : '--set-mss $clampmss';
|
||||
|
||||
add_rule $filter_table->{FORWARD} , "-p tcp --tcp-flags SYN,RST SYN -j TCPMSS $option";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user