Allowed IPv6 connections by fixing the resolver

Let's make it a pull request then. Thanks :)