Add IPv6 handling, Fixes #28