summaryrefslogtreecommitdiffstats
path: root/perl-install/network/activefw.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/network/activefw.pm')
-rw-r--r--perl-install/network/activefw.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/perl-install/network/activefw.pm b/perl-install/network/activefw.pm
index a62b00c07..a06cfe392 100644
--- a/perl-install/network/activefw.pm
+++ b/perl-install/network/activefw.pm
@@ -74,6 +74,17 @@ sub blacklist {
}
}
+sub unblacklist {
+ my ($o, $addr) = @_;
+ eval {
+ $o->{daemon}->UnBlacklist(Net::DBus::Binding::Value->new(&Net::DBus::Binding::Message::TYPE_UINT32, $addr));
+ };
+ if ($@) {
+ print "(Blacklist) exception: $@\n";
+ $o->dispatch;
+ }
+}
+
sub set_interactive {
my ($o, $mode) = @_;
print "setting new IDS mode: $mode\n";