]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
openvpn: Properly handle fragment size.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 20 Jun 2012 18:53:10 +0000 (20:53 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 20 Jun 2012 18:53:10 +0000 (20:53 +0200)
Allow settings FRAGMENT=0.

html/cgi-bin/ovpnmain.cgi

index 2b4c1fdd6e50c66baaf9758d823918336105ea24..92bab473243cac4b8d2f7fa392e6389741e54df9 100644 (file)
@@ -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) {