djabberd/DJabberd — pull request #14 by gittex (2012-10-05 21:09:44+00:00)
Title: Add IPv6 listening support

This commit adds IPv6 c2s (listening) support to the server using
IO::Socket::INET6 instead of IO::Socket::INET.

It also relaxes the IP(v4) check of DJabberd::Util::as_bind_addr
and introduces some new testcases for IPv6 connections.

This patch works for me, but has the drawback of requiring IPv6
capabilities even on hosts w/o (a need for) IPv6.

As IPv4 is facing its end-of-life I deem this is OK, but YMMV.

Please note that this PR only addresses reachability of the server using IPv6. It does not enable outgoing IPv6 connections. I'm working on that in another branch and will open another PR when it is fully working.