projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make it work with badip system active
[spider.git]
/
cmd
/
set
/
badip.pl
diff --git
a/cmd/set/badip.pl
b/cmd/set/badip.pl
index b33261b7faa473233bda582d38f5e890710afdc7..1ed8225adb050de98ac87e7d388860c8785125e6 100644
(file)
--- a/
cmd/set/badip.pl
+++ b/
cmd/set/badip.pl
@@
-9,6
+9,8
@@
my ($self, $line) = @_;
return (1, $self->msg('e5')) if $self->remotecmd;
# are we permitted?
return (1, $self->msg('e5')) if $self->priv < 6;
return (1, $self->msg('e5')) if $self->remotecmd;
# are we permitted?
return (1, $self->msg('e5')) if $self->priv < 6;
+return (1, q{Please install Net::CIDR::Lite or libnet-cidr-lite-perl to use this command}) unless $DXCIDR::active;
+
my @out;
my @added;
my @in = split /\s+/, $line;
my @out;
my @added;
my @in = split /\s+/, $line;