From: Christian Schmidt Date: Fri, 21 May 2010 08:29:51 +0000 (+0200) Subject: Fixed ovpn fragment flag not available if tcp is used. X-Git-Tag: v2.9-beta1~294 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=74225cce6298598290bee49b0d332507014f2eb6;hp=b2d5dd6d4fedd97e8cdf66a94672ce54430dc9a8 Fixed ovpn fragment flag not available if tcp is used. --- diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index ca7c2df9b5..ecca6fa77b 100644 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -337,7 +337,7 @@ sub writeserverconf { if ($sovpnsettings{MSSFIX} eq 'on') { print CONF "mssfix\n"; } - if ($sovpnsettings{FRAGMENT} ne '') { + if ($sovpnsettings{FRAGMENT} ne '' && $sovpnsettings{'DPROTOCOL'} ne 'tcp') { print CONF "fragment $sovpnsettings{'FRAGMENT'}\n"; } if ($sovpnsettings{KEEPALIVE_1} > 0 && $sovpnsettings{KEEPALIVE_2} > 0) { @@ -1406,7 +1406,7 @@ END if ($vpnsettings{MSSFIX} eq 'on') { print CLIENTCONF "mssfix\r\n"; } - if ($vpnsettings{FRAGMENT} ne '') { + if ($vpnsettings{FRAGMENT} ne '' && $vpnsettings{DPROTOCOL} ne 'tcp' ) { print CLIENTCONF "fragment $vpnsettings{'FRAGMENT'}\r\n"; } close(CLIENTCONF);