Skip to content

Commit

Permalink
Merge pull request #155 from nroi/master
Browse files Browse the repository at this point in the history
Add address family for inet:gethostbyname/2 call
  • Loading branch information
cmullaparthi committed Sep 2, 2017
2 parents c97136c + ce20f97 commit 555f707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ibrowse_http_client.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
_ ->
Expand Down

0 comments on commit 555f707

Please sign in to comment.