mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-20 07:53:01 +02:00
ids.cgi: Remove newly added provider if the rules could not be
downloaded. When adding a new provider and in case the rules file or tarball can not be downloaded, the provider remains as configured. To avoid that, the provider needs to be removed again. Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -805,6 +805,9 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'ids apply'}) {
|
||||
|
||||
# Perform a reload of the page.
|
||||
&reload();
|
||||
} else {
|
||||
# Remove the configured provider again.
|
||||
&remove_provider($id);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user