diff --git a/src/hackney_happy.erl b/src/hackney_happy.erl index 1974bfec..1dd791aa 100644 --- a/src/hackney_happy.erl +++ b/src/hackney_happy.erl @@ -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