DC ++ core: fix connection problem when DNS has IPv6 address.
(fix issue 1417) [Thanks to Jan Vidar Krey]