Add support for IPv6.

 Fix issue #10