make quasselcore listen on IPv6 if available
authorDaniel Albers <daniel@lbers.com>
Tue, 17 Aug 2010 20:03:30 +0000 (22:03 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 25 Aug 2010 08:30:00 +0000 (10:30 +0200)
commita18fc9cf59a6329cb67d4eb7bd0197fceacdf7d8
tree8e0a42861d1ee69e6e51404810a20a8888ad6527
parent1dbf78385e2904b3a9a3de48b85381c312c74ef8
make quasselcore listen on IPv6 if available

On most TCP/IP stacks creating a IPv6 listen socket will also allow IPv4
connectivity via IPv4-Mapped IPv6 Addresses. Notable exceptions are
NetBSD and OpenBSD.
Due to these exceptions a successful IPv6 bind() doesn't guarantee IPv4
connectivity, so we still have to try both.
The former implementation did this too, just in the wrong order.
src/common/main.cpp
src/core/core.cpp