From: Leo-Andres Hofmann Date: Tue, 7 Sep 2021 15:53:09 +0000 (+0200) Subject: ovpnmain.cgi: Remove unnecessary check/error message X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d5f11f4e27fe1fd7a24e198a3a382e596736ff40;p=people%2Fms%2Fipfire-2.x.git ovpnmain.cgi: Remove unnecessary check/error message 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 Reviewed-by: Michael Tremer Signed-off-by: Arne Fitzenreiter --- diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index 3cd2f93813..2ebf384ed1 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{$cgiparams{'KEY'}}[1]"); &writecollectdconf(); } - - } else { - $errormessage = $Lang::tr{'invalid key'}; } } }