tvheadend/tvheadend — pull request #226 by BtbN (2013-01-15 05:26:58+00:00)
Title: Add IPv6 support to tcp, http, htsp and access system.

In all my tests this worked without any problems, but testing is highly appreciated.
It patches the tcp, http and htsp code to be compatible to the larger IPv6 addresses, without loosing IPv4 backwards compatiblity.
tcp_server_create now quries for available addresses via getaddrinfo, and prefers IPv6 if it's available.
By disabling sockopt IPV6_V6ONLY, which is default-off on most distributions, but not on all, the IPv6 socket also accepts IPv4 connects which are represented like ::FFFF:127.0.0.1.
The access system is modified to be aware of IPv6 addresses. In webui they work exactly the same way as IPv4 addresses.

I most likely did not test in all possible conditions, but i tried to find all places where the address family matters.