diff options
author | Peter Palfrader <peter@palfrader.org> | 2002-08-18 06:16:25 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2002-08-18 06:16:25 +0000 |
commit | 93060fafb9c895aee5252e03d12bec14dfdf12bf (patch) | |
tree | 6643ea565e8625649bf4ea8cf7b08ea3a7aacc51 /Echolot/Conf.pm | |
parent | f84d41aec3cda1eba5a5bb2114124d7e37e6f15a (diff) |
If you request keyconf from only a few remailers more requests could have been sent. Fixed that.
Diffstat (limited to 'Echolot/Conf.pm')
-rw-r--r-- | Echolot/Conf.pm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Echolot/Conf.pm b/Echolot/Conf.pm index f5872da..ed77b51 100644 --- a/Echolot/Conf.pm +++ b/Echolot/Conf.pm @@ -1,7 +1,7 @@ package Echolot::Conf; # (c) 2002 Peter Palfrader <peter@palfrader.org> -# $Id: Conf.pm,v 1.23 2002/07/22 02:18:30 weasel Exp $ +# $Id: Conf.pm,v 1.24 2002/08/18 06:16:25 weasel Exp $ # =pod @@ -54,12 +54,11 @@ sub send_requests($;$) { next unless ($remailer->{'status'} eq 'active'); next unless ($remailer->{'fetch'}); my $address = $remailer->{'address'}; + next if ($which ne 'all' && $which ne $address ); for my $type (qw{conf key help stats adminkey}) { - next if ($this_call_id ne (Echolot::Tools::makeShortNumHash($address.$type) % $send_every_n_calls) && - $which ne 'all' && - $which ne $address ); + next if ($which ne 'all' && $this_call_id ne (Echolot::Tools::makeShortNumHash($address.$type) % $send_every_n_calls)); print "Sending $type requests to ".$address."\n" if Echolot::Config::get()->{'verbose'}; |