I'm wondering if this is the best way to stop RTIR from detecting CIDR
ranges. I've been looking
into /opt/rt4/local/plugins/RT-IR/lib/RT/Action/RTIR_FindIP.pm and modified
the following section:
elsif ( $4 && defined $5 ) { # IPv4/mask
* next; # Do not add IPv4 ranges to tickets*
my $cidr = join( '.', map $_||0, (split /\./, $4)[0..3] )
."/$5";
my $range = (Net::CIDR::cidr2range( $cidr ))[0] or next;
$spots_left -= $self->AddIP(
IP => $range, CustomField => $cf, Skip => \%existing
);
}
Is this the best way? Or is there something else I should have done
instead?
--
Landon Stewart <[email protected]>
_______________________________________________
Rtir mailing list
[email protected]
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rtir