mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
OpenVPN: Prevent internal server error cause of bad header wrapper
This fixes #11772 . If the X509 are deleted, the openvpnctrl output generates a bad header wrapper error from the CGI which causes an internal server error. The redirection of the openvpnctrl output fixes this. Signed-off-by: Erik Kapfer <erik.kapfer@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
461d78b412
commit
8ae4010b31
@@ -1181,7 +1181,7 @@ SETTINGS_ERROR:
|
||||
delete $confighash{$cgiparams{'$key'}};
|
||||
}
|
||||
|
||||
system ("/usr/local/bin/openvpnctrl -drrd $name");
|
||||
system ("/usr/local/bin/openvpnctrl -drrd $name &>/dev/null");
|
||||
}
|
||||
while ($file = glob("${General::swroot}/ovpn/ca/*")) {
|
||||
unlink $file;
|
||||
|
||||
Reference in New Issue
Block a user