From c73ad577dd5a503d02b2b1edc773a86897ac8612 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 10 Apr 2024 15:52:06 +0200 Subject: [PATCH] ovpnmain.cgi: Remove code to restart a connection This could not be triggered. Signed-off-by: Michael Tremer --- html/cgi-bin/ovpnmain.cgi | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index 505e597e9..de82f8d0a 100644 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -3297,22 +3297,6 @@ END $errormessage = $Lang::tr{'invalid key'}; } -### -### Restart connection -### -} elsif ($cgiparams{'ACTION'} eq $Lang::tr{'restart'}) { - &General::readhash("${General::swroot}/ovpn/settings", \%vpnsettings); - &General::readhasharray("${General::swroot}/ovpn/ovpnconfig", \%confighash); - - if ($confighash{$cgiparams{'KEY'}}) { -# if ($vpnsettings{'ENABLED'} eq 'on' || -# $vpnsettings{'ENABLED_BLUE'} eq 'on') { -# system('/usr/local/bin/ipsecctrl', 'S', $cgiparams{'KEY'}); -# } - } else { - $errormessage = $Lang::tr{'invalid key'}; - } - } elsif ($cgiparams{'ACTION'} eq $Lang::tr{'add'} && $cgiparams{'TYPE'} eq '') { &General::readhash("${General::swroot}/ovpn/settings", \%vpnsettings); &Header::showhttpheaders(); -- 2.39.5