diff --git a/src/ibrowse_http_client.erl b/src/ibrowse_http_client.erl index 37f4148..2b79a0e 100644 --- a/src/ibrowse_http_client.erl +++ b/src/ibrowse_http_client.erl @@ -619,7 +619,7 @@ is_ipv6_host(Host) -> {ok, {_, _, _, _}} -> false; _ -> - case inet:gethostbyname(Host) of + case inet:gethostbyname(Host, inet6) of {ok, #hostent{h_addrtype = inet6}} -> true; _ ->