Bug #1742
closedHostnames which resolve to an IPv6 address do not work in SSL socket specification
Description
A hostname which resolves to an IPv6 address cannot currently be used to specify a socket for SSL.
E.g., a config file (10-ssl.conf) with
$SERVER\socket == "ipv6.example.net:443" {
ssl.engine = "enable"
ssl.pemfile = "/etc/lighttpd/server.pem"
}
...where example.net resolves to an IPv6 address only, upon restart of Lighttpd will produce an error:
Starting web server: lighttpd2008-08-03 03:15:32: (network.c.224) gethostbyname failed: 1 ipv6.example.net
failed!
I should note, that specifying an IPv6 address (in square brackets) instead of hostname, or a hostname which resolves to IPv4, does work OK there.
Updated by rm over 16 years ago
That should read "...where ipv6.example.net resolves...".
Updated by stbuehler over 16 years ago
- Status changed from New to Fixed
- Resolution set to invalid
Use {{{
$SERVERsocket == "ipv6.example.net:443"
}}}
But i don't recommend using names - if the name resolves to more than one address, only the first one is taken.
Also available in: Atom