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:
teastep 2007-04-09 15:21:00 +00:00
parent 57d1a5612f
commit 44268f76aa

View File

@ -1670,7 +1670,7 @@ sub generate_matrix() {
sub setup_mss( $ ) { sub setup_mss( $ ) {
my $clampmss = $_[0]; 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"; add_rule $filter_table->{FORWARD} , "-p tcp --tcp-flags SYN,RST SYN -j TCPMSS $option";
} }