🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83570

Re: [INN] POST instead of IHAVE?

#83570
From: Julien ÉLIE
Date: Sun, 24 Oct 2010 16:39
40 lines
2717 bytes
>> And with the "-s" flag, we cannot use
>> IPv6 addresses because ":" is matched for a port.
>
> Solution:  mentioning a port works.
>  -s '::1' -p 119
> does the trick :-)

Or also with this patch:

-$localPort = $1 if not defined $opt_p and $localServer =~ s/:(\d+)$//;
+# Find a possible port at the end of the news server name.
+# Count the number of ":" to check that it is not an IPv6 address.
+if (not defined $opt_p) {
+    my @colons = split(/:/, $localServer);
+    $localPort = $1 if ((scalar(@colons) == 2) and ($localServer =~ s/:(\d+)$//));
+}

But it still does not work...

% ./pullnews -s '::1'
Sun Oct 24 18:37:11 2010 start

Connecting to downstream host: ::1 port: 119 ...Can't connect to server ::1


!!


I see that IO::Socket::INET (used by Net::NNTP) is still IPv4-only in Perl...

    http://leonerds-code.blogspot.com/2010/09/module-name-suggestions-proper-iosocket.html

Well, at least the code will work when IPv6 support exists in one of these two
Perl modules.

-- 
Julien ÉLIE

« Dans l'algèbre comme dans la police, il faut identifier X. » (André Frédérique) 
Technical Details
Message-ID: <ia1nff$ans$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!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!.POSTED.aaubervilliers-151-1-50-127.w83-114.abo.wanadoo.fr!not-for-mail
References: <i834on$hg6$1@dk3uz.ampr.org> <i858pc$a9s$1@news.trigofacile.com> <i85q09$i4f$1@dk3uz.ampr.org> <i86rij$34j$1@news.trigofacile.com> <i8qtpl$g9i$1@dk3uz.ampr.org> <i8rtpv$iv1$1@news.trigofacile.com> <ia1jah$5sd$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <ia1nff$ans$1@news.trigofacile.com>
Subject: Re: [INN] POST instead of IHAVE?
Date: Sun, 24 Oct 2010 18:39:12 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <i834on$hg6$1@dk3uz.ampr.org> <i858pc$a9s$1@news.trigofacile.com> <i85q09$i4f$1@dk3uz.ampr.org> <i86rij$34j$1@news.trigofacile.com> <i8qtpl$g9i$1@dk3uz.ampr.org> <i8rtpv$iv1$1@news.trigofacile.com> <ia1jah$5sd$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!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!.POSTED.aaubervilliers-151-1-50-127.w83-114.abo.wanadoo.fr!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 40
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="Windows-1252";
 reply-type=response
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 24 Oct 2010 16:39:11 +0000 (UTC)
Injection-Info: news.trigofacile.com;
 posting-host="aaubervilliers-151-1-50-127.w83-114.abo.wanadoo.fr:83.114.130.127";
 logging-data="11004"; mail-complaints-to="abuse@trigofacile.com"
In-Reply-To: <ia1jah$5sd$1@news.trigofacile.com>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6002.18197
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18263