diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-02-15 17:34:39 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-02-15 17:34:39 +0000 |
commit | 8fcf34c2418c0946215f67500793af17f4d886cb (patch) | |
tree | 36b92087c48239380b7c879f90528402153c1fa2 /perl-install | |
parent | 26e4db4a9e93da3cb10c834bb42fec417d5c2de3 (diff) | |
download | drakx-8fcf34c2418c0946215f67500793af17f4d886cb.tar drakx-8fcf34c2418c0946215f67500793af17f4d886cb.tar.gz drakx-8fcf34c2418c0946215f67500793af17f4d886cb.tar.bz2 drakx-8fcf34c2418c0946215f67500793af17f4d886cb.tar.xz drakx-8fcf34c2418c0946215f67500793af17f4d886cb.zip |
add unblacklist
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/network/activefw.pm | 11 |
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"; |