Skip to content

Commit

Permalink
address already parsed
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitc committed Oct 10, 2024
1 parent 8a45b03 commit 5c0f6e5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/hackney_happy.erl
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@ getaddrs(Hostname) ->
getbyname(Hostname, Type) ->
case (catch inet_res:getbyname(Hostname, Type)) of
{'ok', #hostent{h_addr_list=AddrList}} -> lists:usort(AddrList);
{error, nxdomain} ->
case inet:parse_address(Hostname) of
{ok, IP} -> [IP];
_ -> []
end;
{error, _Reason} -> [];
Else ->
%% ERLANG 22 has an issue when g matching somee DNS server messages
Expand Down

0 comments on commit 5c0f6e5

Please sign in to comment.