summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/standalone/net_applet6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/standalone/net_applet b/perl-install/standalone/net_applet
index 904671027..1163e1816 100644
--- a/perl-install/standalone/net_applet
+++ b/perl-install/standalone/net_applet
@@ -188,6 +188,12 @@ sub setAutoStart {
sub handle_attack {
my ($seq, $timestamp, $indev, $prefix, $sensor, $protocol, $addr, $port, $icmp_type) = @_;
+ unless ($interactive_cb->get_active) {
+ #- let the daemon handle the blacklist policy in automatic mode
+ $activefw->blacklist($seq, undef);
+ return;
+ }
+
my $ip_addr = activefw::get_ip_address($addr);
my $hostname = activefw::resolve_address($ip_addr);
my $service = activefw::get_service($port);