]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ovpnmain.cgi: Remove unnecessary check/error message
authorLeo-Andres Hofmann <hofmann@leo-andres.de>
Tue, 7 Sep 2021 15:53:09 +0000 (17:53 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 12 Sep 2021 09:29:15 +0000 (09:29 +0000)
This parameter can either be "host" or "net", but the existing check
only allows "net" entries. Since other entries are also valid but
don't require further action, this patch removes the error message.

Fixes: #12686
Signed-off-by: Leo-Andres Hofmann <hofmann@leo-andres.de>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
html/cgi-bin/ovpnmain.cgi

index 3cd2f93813e8c9a9d82af67fd1c71b34be49db8c..2ebf384ed15df4672ff32537ee1c706b9318e996 100644 (file)
@@ -2183,9 +2183,6 @@ END
                                        &General::system("/usr/local/bin/openvpnctrl", "-kn2n", "$confighash{$cgiparams{'KEY'}}[1]");
                                        &writecollectdconf();
                                }
-                       } else {
-                               $errormessage = $Lang::tr{'invalid key'};
                        }
                }
   }