Skip to content

Commit 555f707

Browse files
authored
Merge pull request #155 from nroi/master
Add address family for inet:gethostbyname/2 call
2 parents c97136c + ce20f97 commit 555f707

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ibrowse_http_client.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ is_ipv6_host(Host) ->
619619
{ok, {_, _, _, _}} ->
620620
false;
621621
_ ->
622-
case inet:gethostbyname(Host) of
622+
case inet:gethostbyname(Host, inet6) of
623623
{ok, #hostent{h_addrtype = inet6}} ->
624624
true;
625625
_ ->

0 commit comments

Comments
 (0)