From: Michael Tremer Date: Wed, 20 Jun 2012 18:53:10 +0000 (+0200) Subject: openvpn: Properly handle fragment size. X-Git-Tag: v2.11-core61^2~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6f7fcbf2ad6c6f5922f35360bf3a81b80c4d196b;p=people%2Fms%2Fipfire-2.x.git openvpn: Properly handle fragment size. Allow settings FRAGMENT=0. --- diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index 2b4c1fdd6e..92bab47324 100644 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -359,7 +359,7 @@ sub writeserverconf { if ($sovpnsettings{MSSFIX} eq 'on') { print CONF "mssfix\n"; } - if ($sovpnsettings{FRAGMENT} ne '' && $sovpnsettings{'DPROTOCOL'} ne 'tcp') { + if (($sovpnsettings{FRAGMENT} ne '' && $sovpnsettings{FRAGMENT} ne 0) && $sovpnsettings{'DPROTOCOL'} ne 'tcp') { print CONF "fragment $sovpnsettings{'FRAGMENT'}\n"; } if ($sovpnsettings{KEEPALIVE_1} > 0 && $sovpnsettings{KEEPALIVE_2} > 0) {