Extend listen to enable IPv6 support.
Merge pull request #558 from p-a-c-o/master

Extend listen to enable IPv6 support.