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=fc34bf9c047427300a17b8220edb7cbf99d5696b;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 c29f59ecb..62dc1f76a 100755 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -5798,7 +5798,7 @@ END END ; - if ( $srunning eq "yes" ) { + if ($vpnsettings{'ENABLED'} eq "yes") { print "
\n"; } else { print "
\n";