Bug in STABLE innfeed
Julien ÉLIE
julien at trigofacile.com
Tue May 13 19:51:50 UTC 2008
Hi,
> Note that CURRENT works fine (only one IP is printed).
Just in case someone wants it, I use this one for CURRENT:
--- innfeed/host.c (révision 7807)
+++ innfeed/host.c (copie de travail)
@@ -3358,6 +3358,23 @@
fputc ('\n',fp) ;
+ if (host->ipAddrs) {
+ int i;
+ char *family;
+ char addr[INET6_ADDRSTRLEN];
+
+ for(i=0; host->ipAddrs[i]; ++i) {
+ switch(host->ipAddrs[i]->sa_family) {
+ case AF_INET: family=xstrdup("IPv4"); break;
+ case AF_INET6: family=xstrdup("IPv6"); break;
+ default: family=xstrdup("????"); break;
+ }
+ network_sockaddr_sprint(addr, sizeof(addr),
+ (struct sockaddr *) host->ipAddrs[i]);
+ fprintf(fp,"IP Addr %-2u: %-4.4s %s\n", i+1, family, addr);
+ }
+ }
+
fprintf (fp, " seconds: %-7ld art. timeout: %-5d ip name: %s\n",
host->firstConnectTime > 0 ? (long)(now - host->firstConnectTime) : 0,
host->params->articleTimeout, host->params->ipName) ;
--
Julien ÉLIE
« Cette apostrophe me déconcerte et me réduit au silence,
parce que l'homme sensible comme moi, tout entier à ce qu'on lui objecte,
perd la tête, et ne se retrouve qu'au bas de l'escalier. » (Denis Diderot)
More information about the inn-workers
mailing list