From: Michael Tremer Date: Wed, 10 Apr 2024 13:52:06 +0000 (+0200) Subject: ovpnmain.cgi: Remove code to restart a connection X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=88e4c1726f4069efcbedd67cd8f7b9ef98ebab62;p=people%2Fms%2Fipfire-2.x.git ovpnmain.cgi: Remove code to restart a connection This could not be triggered. Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index 0c41095e5..55c91453b 100755 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -3296,22 +3296,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();