projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add DXCIDR, fix version no tracking
[spider.git]
/
perl
/
DXCommandmode.pm
diff --git
a/perl/DXCommandmode.pm
b/perl/DXCommandmode.pm
index 5ea58ea192931f2d5dbf9f42562002819460a6fd..9e710c11be504569227bc811c159188bf74edfa0 100644
(file)
--- a/
perl/DXCommandmode.pm
+++ b/
perl/DXCommandmode.pm
@@
-39,6
+39,7
@@
use DB_File;
use VE7CC;
use DXXml;
use AsyncMsg;
use VE7CC;
use DXXml;
use AsyncMsg;
+use DXCIDR;
use strict;
use vars qw(%Cache %cmd_cache $errstr %aliases $scriptbase %nothereslug
use strict;
use vars qw(%Cache %cmd_cache $errstr %aliases $scriptbase %nothereslug
@@
-194,6
+195,11
@@
sub start
$self->tell_login('loginu');
$self->tell_buddies('loginb');
$self->tell_login('loginu');
$self->tell_buddies('loginb');
+
+ # is this a bad ip address?
+ if (is_ipaddr($self->{hostname})) {
+ $self->{badip} = DXCIDR->find($self->{hostname});
+ }
# do we need to send a forward/opernam?
my $lastoper = $user->lastoper || 0;
# do we need to send a forward/opernam?
my $lastoper = $user->lastoper || 0;