diff options
author | Raimo Niskanen <raimo@erlang.org> | 2018-02-22 14:46:23 +0100 |
---|---|---|
committer | Raimo Niskanen <raimo@erlang.org> | 2018-02-22 14:46:23 +0100 |
commit | 6a4fb088b97a118bd1dcc1a544578f9fabc10c25 (patch) | |
tree | d7f41305b2181e207249abee0c1fadf9a07c8700 /lib/kernel/src/inet_res.erl | |
parent | ee6d1b9a61d8f2f087f0f3bf3ea2b933b5c3a93a (diff) | |
download | erlang-6a4fb088b97a118bd1dcc1a544578f9fabc10c25.tar.gz |
Stop translating V4MAPPED addresses
Diffstat (limited to 'lib/kernel/src/inet_res.erl')
-rw-r--r-- | lib/kernel/src/inet_res.erl | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/kernel/src/inet_res.erl b/lib/kernel/src/inet_res.erl index 58017c62fb..6454802b04 100644 --- a/lib/kernel/src/inet_res.erl +++ b/lib/kernel/src/inet_res.erl @@ -349,9 +349,6 @@ gethostbyaddr_tm({A,B,C,D} = IP, Timer) when ?ip(A,B,C,D) -> {ok, HEnt} -> {ok, HEnt}; _ -> res_gethostbyaddr(dn_in_addr_arpa(A,B,C,D), IP, Timer) end; -%% ipv4 only ipv6 address -gethostbyaddr_tm({0,0,0,0,0,16#ffff,G,H},Timer) when is_integer(G+H) -> - gethostbyaddr_tm({G div 256, G rem 256, H div 256, H rem 256},Timer); gethostbyaddr_tm({A,B,C,D,E,F,G,H} = IP, Timer) when ?ip6(A,B,C,D,E,F,G,H) -> inet_db:res_update_conf(), case inet_db:gethostbyaddr(IP) of |