/[smeserver]/spamassassin-botnet/P/spamassassin-botnet-0.8-dnsresolver.patch
ViewVC logotype

Annotation of /spamassassin-botnet/P/spamassassin-botnet-0.8-dnsresolver.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Mon Aug 27 20:25:18 2007 UTC (17 years, 2 months ago) by gregswallow
Branch: MAIN
CVS Tags: HEAD
Mon Aug 27 14:25:07 2007                                      gswallow

Updated to 0.8
----------------------------------------------------------------------

1 gregswallow 1.1 diff -Nur -x '*.orig' -x '*.rej' spamassassin-botnet-0.8/Botnet.pm mezzanine_patched_spamassassin-botnet-0.8/Botnet.pm
2     --- spamassassin-botnet-0.8/Botnet.pm 2007-08-05 19:53:55.000000000 -0600
3     +++ mezzanine_patched_spamassassin-botnet-0.8/Botnet.pm 2007-08-27 14:18:43.000000000 -0600
4     @@ -710,7 +710,16 @@
5     ($type =~ /^(?:A|MX)$/) &&
6     (defined $max) &&
7     ($max =~ /^-?\d+$/) ) {
8     - $resolver = Net::DNS::Resolver->new();
9     + $resolver = Net::DNS::Resolver->new(
10     + udp_timeout => 5,
11     + tcp_timeout => 5,
12     + retrans => 0,
13     + retry => 1,
14     + persistent_tcp => 0,
15     + persistent_udp => 0,
16     + dnsrch => 0,
17     + defnames => 0,
18     + );
19     if ($query = $resolver->search($name, $type)) {
20     # found matches
21     $i = 0;
22     @@ -833,7 +842,16 @@
23     sub get_rdns {
24     my ($ip) = @_;
25     my ($query, @answer, $rr);
26     - my $resolver = Net::DNS::Resolver->new();
27     + my $resolver = Net::DNS::Resolver->new(
28     + udp_timeout => 5,
29     + tcp_timeout => 5,
30     + retrans => 0,
31     + retry => 1,
32     + persistent_tcp => 0,
33     + persistent_udp => 0,
34     + dnsrch => 0,
35     + defnames => 0,
36     + );
37     my $name = "";
38    
39     if ($query = $resolver->query($ip, 'PTR', 'IN')) {

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed