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-Tag: v2.29-core197~25^2~130 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2862417617ab134600c18ebdfccef0288f68d506;p=ipfire-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";