瀏覽代碼

Add address family for inet:gethostbyname/2 call

The previously used inet:gethostbyname/1 would use IPv6 only if
inet_db:res_option(inet6) returned true, but the default resolver
setting for inet6 is false.
pull/155/head
Fabian Muscariello 8 年之前
父節點
當前提交
ce20f975b4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/ibrowse_http_client.erl

+ 1
- 1
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;
_ ->

Loading…
取消
儲存