From 93060fafb9c895aee5252e03d12bec14dfdf12bf Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 18 Aug 2002 06:16:25 +0000 Subject: If you request keyconf from only a few remailers more requests could have been sent. Fixed that. --- Echolot/Conf.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Echolot') 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 -# $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'}; -- cgit v1.2.3