From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo-Andres Hofmann To: development@lists.ipfire.org Subject: [PATCH] ovpnmain.cgi: Remove unnecessary check/error message Date: Tue, 07 Sep 2021 17:53:09 +0200 Message-ID: <20210907155309.1896-1-hofmann@leo-andres.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3721164337113818795==" List-Id: --===============3721164337113818795== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 --- html/cgi-bin/ovpnmain.cgi | 3 --- 1 file changed, 3 deletions(-) diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index 3cd2f9381..2ebf384ed 100644 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -2183,9 +2183,6 @@ END &General::system("/usr/local/bin/openvpnctrl", "-kn2n", "$confighash{$c= giparams{'KEY'}}[1]"); &writecollectdconf(); } -=20 - } else { - $errormessage =3D $Lang::tr{'invalid key'}; } } } --=20 2.27.0.windows.1 --===============3721164337113818795==--