]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
ovpnmain.cgi: Remove some dead code
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 3 Jun 2025 10:33:44 +0000 (12:33 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 3 Jun 2025 10:33:44 +0000 (12:33 +0200)
This prevented creating new connections and was never being used at all.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/ovpnmain.cgi

index 4dc4eebdf732e09dbaeca56cb5fc2c6003548e9d..a7bc0c02ab1375ee3d292be6fa84556f2cba460f 100644 (file)
@@ -4053,10 +4053,6 @@ if ($cgiparams{'TYPE'} eq 'net') {
            $errormessage = $Lang::tr{'invalid input'};
            goto VPNCONF_ERROR;
        }
-       if ($cgiparams{'EDIT_ADVANCED'} !~ /^(on|off)$/) {
-           $errormessage = $Lang::tr{'invalid input'};
-           goto VPNCONF_ERROR;
-       }
 
        if ($cgiparams{'AUTH'} eq 'certreq') {
            if ($cgiparams{'KEY'}) {
@@ -4445,10 +4441,6 @@ if ($cgiparams{'TYPE'} eq 'net') {
                }
        }
 
-       if ($cgiparams{'EDIT_ADVANCED'} eq 'on') {
-           $cgiparams{'KEY'} = $key;
-           $cgiparams{'ACTION'} = $Lang::tr{'advanced'};
-       }
        goto VPNCONF_END;
     } else {
         $cgiparams{'ENABLED'} = 'on';
@@ -4478,10 +4470,6 @@ if ($cgiparams{'TYPE'} eq 'net') {
 
        $checked{'OTP_STATE'}{$cgiparams{'OTP_STATE'}} = 'CHECKED';
 
-    $checked{'EDIT_ADVANCED'}{'off'} = '';
-    $checked{'EDIT_ADVANCED'}{'on'} = '';
-    $checked{'EDIT_ADVANCED'}{$cgiparams{'EDIT_ADVANCED'}} = 'CHECKED';
-
     $selected{'SIDE'}{'server'} = '';
     $selected{'SIDE'}{'client'} = '';
     $selected{'SIDE'}{$cgiparams{'SIDE'}} = 'SELECTED';