Article View: news.software.nntp
Article #84110Re: Maybe a bug in X-Trace nnrpd generation (INN 2.5.2)
From: Julien ÉLIE
Date: Sat, 11 Jun 2011 07:32
Date: Sat, 11 Jun 2011 07:32
56 lines
3339 bytes
3339 bytes
Hi all, > 2/ to solve issues with the X-Trace: header field, we need to set an IP > so I believe adding > strlcpy(Client.ip, "127.0.0.1", sizeof(Client.ip)); > after setting Client.host in this special case (to "localhost" now) is > what we should do *for INN 2.5*. > No change for INN 2.6 which does not generate X-Trace information. We > will end up with "localhost" in the Injection-Info: header body, which > is fine. No further IP. Just fixed in INN 2.5.3 (and 2.6.0 with "posting-host") the following way: The X-Trace: header field was not properly generated when an article was locally posted. The field mentioning the IP address was skipped, resulting in a wrong syntax for this header. The local "127.0.0.1" IP address is now used. Besides, "localhost" is now mentioned instead of an obscure "stdin" in injection header fields. Result with INN 2.6.0: Path: news.trigofacile.com!.POSTED.localhost!not-for-mail Injection-Info: news.trigofacile.com; posting-host="localhost" Result with INN 2.5.3: NNTP-Posting-Host: localhost X-Trace: news.trigofacile.com 1307777002 7512 127.0.0.1 (11 Jun 2011 09:23:22 GMT) > A remaining issue is when "nnrpd -n" is used, with no DNS resolution. > The host is "?" and will be used as-is in headers. It is not good, > especially in a Path: header field like "me!.POSTED.?!not-for-mail" or > in "?:1.2.3.4" in the Injection-Info: header field. There is in fact no bug. Also just tested. The IP is used :) (When the "-n" flag is used, "Client.Ip" is copied into "Client.Host".) Result with INN 2.6.0: Path: news.trigofacile.com!.POSTED.92.141.84.61!not-for-mail Injection-Info: news.trigofacile.com; posting-host="92.141.84.61" I think all the issues mentioned in this thread are now fixed. Do not hesitate to tell me in case something is still wrong. -- Julien ÉLIE « Un voyage de mille lieues commence toujours par un premier pas. » (Lao Zi)
Technical Details
Message-ID:
<95gk09FtgaU1@mid.individual.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<ikfnh8$g2c$1@speranza.aioe.org> <ikfpan$s8e$1@news.trigofacile.com> <ikfs40$svf$1@speranza.aioe.org> <8t1cj4FifjU1@mid.individual.net> <874o7onhsm.fsf@windlord.stanford.edu> <ikijqs$1l6$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <95gk09FtgaU1@mid.individual.net> Subject: Re: Maybe a bug in X-Trace nnrpd generation (INN 2.5.2) Date: Sat, 11 Jun 2011 09:32:25 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <ikfnh8$g2c$1@speranza.aioe.org> <ikfpan$s8e$1@news.trigofacile.com> <ikfs40$svf$1@speranza.aioe.org> <8t1cj4FifjU1@mid.individual.net> <874o7onhsm.fsf@windlord.stanford.edu> <ikijqs$1l6$1@news.trigofacile.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 56 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net LgxZI8qBHpIKOFFpKvTfxgTHz9oCc0DVQYxIZtmIfMwOADCRk= Cancel-Lock: sha1:ZL+66vb8sI1JJkiQbIgNIrhVv68= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; fr; In-Reply-To: <ikijqs$1l6$1@news.trigofacile.com>