summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2002-08-18 06:16:25 +0000
committerPeter Palfrader <peter@palfrader.org>2002-08-18 06:16:25 +0000
commit93060fafb9c895aee5252e03d12bec14dfdf12bf (patch)
tree6643ea565e8625649bf4ea8cf7b08ea3a7aacc51
parentf84d41aec3cda1eba5a5bb2114124d7e37e6f15a (diff)
If you request keyconf from only a few remailers more requests could have been sent. Fixed that.
-rw-r--r--Echolot/Conf.pm7
-rw-r--r--NEWS2
2 files changed, 5 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'};
diff --git a/NEWS b/NEWS
index 812717f..1dbd082 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,7 @@
Changes in version
* Have a consistent name for the ~/echolot directory in README.
+ * If you request keyconf from only a few remailers more requests could
+ have been sent. Fixed that.
Changes in version 2.0beta30 - 2002-08-15
* Write NAME and ADDRESS to mix.cfg - mix cannot figure it out