From 5c0f6e5a33acc0776a0e4d723259a20110e88643 Mon Sep 17 00:00:00 2001 From: benoitc Date: Thu, 10 Oct 2024 23:03:48 +0200 Subject: [PATCH] address already parsed --- src/hackney_happy.erl | 5 ----- 1 file changed, 5 deletions(-) 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