From b6814fb1f33aebe24dd317d715368498d860abdb Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 15 Aug 2002 03:27:47 +0000 Subject: Write NAME and ADDRESS to mix.cfg - mix cannot figure it out if detached --- Echolot/Pinger/Mix.pm | 24 +++++++++++++----------- NEWS | 4 ++++ 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/Echolot/Pinger/Mix.pm b/Echolot/Pinger/Mix.pm index c5122cf..a2a66c2 100644 --- a/Echolot/Pinger/Mix.pm +++ b/Echolot/Pinger/Mix.pm @@ -1,7 +1,7 @@ package Echolot::Pinger::Mix; # (c) 2002 Peter Palfrader -# $Id: Mix.pm,v 1.6 2002/08/13 05:58:10 weasel Exp $ +# $Id: Mix.pm,v 1.7 2002/08/15 03:27:47 weasel Exp $ # =pod @@ -49,16 +49,18 @@ sub ping($$$$) { return 0; my $mixcfg = Echolot::Config::get()->{'mixhome'}.'/mix.cfg'; - unless ( -e $mixcfg ) { - open (F, ">$mixcfg") or - cluck("Cannot open $mixcfg for writing: $!"), - return 0; - print (F "PUBRING pubring.mix\n"); - print (F "TYPE2LIST type2.list\n"); - close (F) or - cluck("Cannot close $mixcfg: $!"), - return 0; - }; + my $address = Echolot::Config::get()->{'my_localpart'} . '@' . + Echolot::Config::get()->{'my_domain'}; + open (F, ">$mixcfg") or + cluck("Cannot open $mixcfg for writing: $!"), + return 0; + print (F "NAME Echolot Pinger\n"); + print (F "ADDRESS $address\n"); + print (F "PUBRING pubring.mix\n"); + print (F "TYPE2LIST type2.list\n"); + close (F) or + cluck("Cannot close $mixcfg: $!"), + return 0; $ENV{'MIXPATH'} = Echolot::Config::get()->{'mixhome'}; open(MIX, "|".Echolot::Config::get()->{'mixmaster'}." -m -S -l $chaincomma") or diff --git a/NEWS b/NEWS index cc58a38..2495edd 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,7 @@ +Changes in version + * Write NAME and ADDRESS to mix.cfg - mix cannot figure it out + if detached. + Changes in version 2.0beta29 - 2002-08-14 * Create .meta files with the expiry date of pages. * Also put the expiry date in HTML meta headers. -- cgit v1.2.3