[pkg-lighttpd] Bug#564556: /usr/share/lighttpd/use-ipv6.pl causes this

Roman Mamedov roman at rm.pp.ru
Mon Jan 11 12:26:03 UTC 2010


This seems to happen due to the Perl script which checks if IPv6 support is
available on the machine. The default config contains this line:

   include_shell "/usr/share/lighttpd/use-ipv6.pl"

When I comment it out and just add the following instead:

   server.socket = "[::]:80"

...the server starts up fine and listens both on IPv4 and IPv6 (with
the netbase bug fixed with bindv6only=0 in /etc/sysctl.d/bindv6only.conf).

/usr/share/lighttpd/use-ipv6.pl mentioned above contains the following:

#! /usr/bin/perl -w

use Socket;
my $sock;

if (socket($sock, AF_INET6, SOCK_STREAM, 0)) {
    print qq/\$SERVER["socket"] == "[::]:80" { }\n/;

With respect,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-lighttpd-maintainers/attachments/20100111/1459e8d6/attachment.pgp>

More information about the pkg-lighttpd-maintainers mailing list