ovpnmain.cgi: Set mtu-disc to off if not configured.
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 17 Jul 2013 19:01:14 +0000 (21:01 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Wed, 17 Jul 2013 19:01:14 +0000 (21:01 +0200)
Fixes #10391.

html/cgi-bin/ovpnmain.cgi

index 38dad1ded1adfd20eb0a873687fc29bb3653706e..8622f6d63894917946babb7d97ab467115bfb043 100644 (file)
@@ -2339,6 +2339,9 @@ ADV_ERROR:
     if ($cgiparams{'LOG_VERB'} eq '') {
        $cgiparams{'LOG_VERB'} =  '3';
     }
+    if ($cgiparams{'PMTU_DISCOVERY'} eq '') {
+       $cgiparams{'PMTU_DISCOVERY'} = 'off';
+    }
     $checked{'CLIENT2CLIENT'}{'off'} = '';
     $checked{'CLIENT2CLIENT'}{'on'} = '';
     $checked{'CLIENT2CLIENT'}{$cgiparams{'CLIENT2CLIENT'}} = 'CHECKED';
@@ -4155,6 +4158,9 @@ if ($cgiparams{'TYPE'} eq 'net') {
     $checked{'MSSFIX'}{'on'} = '';
     $checked{'MSSFIX'}{$cgiparams{'MSSFIX'}} = 'CHECKED';
 
+    if ($cgiparams{'PMTU_DISCOVERY'} eq '') {
+       $cgiparams{'PMTU_DISCOVERY'} = 'off';
+    }
     $checked{'PMTU_DISCOVERY'}{$cgiparams{'PMTU_DISCOVERY'}} = 'checked=\'checked\'';