From: Michael Tremer Date: Tue, 9 Apr 2024 16:09:37 +0000 (+0200) Subject: ovpnmain.cgi: Only allow removing X.509 when the server is not enabled X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=59f9814a9f47da6cc83662e021ee1dfc40b0c913;p=people%2Fms%2Fipfire-2.x.git ovpnmain.cgi: Only allow removing X.509 when the server is not enabled Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index 16f457fb3..33c3138cf 100644 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -5791,7 +5791,7 @@ END END ; - if ( $srunning eq "yes" ) { + if ($vpnsettings{'ENABLED'} eq "yes") { print "
\n"; } else { print "
\n";