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=7917d3180d64dba633cba65246e5156b53b86cfd;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 a3f12ebcd..2a5d475ea 100755 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -5790,7 +5790,7 @@ END END ; - if ( $srunning eq "yes" ) { + if ($vpnsettings{'ENABLED'} eq "yes") { print "
\n"; } else { print "
\n";