aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/inet.erl
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2018-02-13 10:14:22 +0100
committerRaimo Niskanen <[email protected]>2018-02-13 10:14:22 +0100
commitee6d1b9a61d8f2f087f0f3bf3ea2b933b5c3a93a (patch)
treed9e9a8021e47352abbf5215b4244a810709a52a2 /lib/kernel/src/inet.erl
parent82e5a5df18e21e4220e51d89c666d1da70f12ec1 (diff)
downloadotp-ee6d1b9a61d8f2f087f0f3bf3ea2b933b5c3a93a.tar.gz
otp-ee6d1b9a61d8f2f087f0f3bf3ea2b933b5c3a93a.tar.bz2
otp-ee6d1b9a61d8f2f087f0f3bf3ea2b933b5c3a93a.zip
Stop returning V4MAPPED addresses
Diffstat (limited to 'lib/kernel/src/inet.erl')
-rw-r--r--lib/kernel/src/inet.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/kernel/src/inet.erl b/lib/kernel/src/inet.erl
index fd26a88d42..4bad523dff 100644
--- a/lib/kernel/src/inet.erl
+++ b/lib/kernel/src/inet.erl
@@ -1253,9 +1253,7 @@ gethostbyname_string(Name, Type)
inet ->
inet_parse:ipv4_address(Name);
inet6 ->
- %% XXX should we really translate IPv4 addresses here
- %% even if we do not know if this host can do IPv6?
- inet_parse:ipv6_address(Name)
+ inet_parse:ipv6strict_address(Name)
end of
{ok,IP} ->
{ok,make_hostent(Name, [IP], [], Type)};