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 <hofmann@leo-andres.de>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Leo-Andres Hofmann
2021-09-07 17:53:09 +02:00
committed by Arne Fitzenreiter
parent b9a0d7065b
commit d5f11f4e27

View File

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