diff options
author | Zandra <[email protected]> | 2015-11-13 10:44:19 +0100 |
---|---|---|
committer | Zandra <[email protected]> | 2015-11-13 10:44:19 +0100 |
commit | 263d1e6bb37cb09f0d09039da625f14db656f552 (patch) | |
tree | 24c31a5c668335cae79e59962ad0c75f329d0230 /lib/inets/src/http_server/httpd_util.erl | |
parent | e8f6435d3c932a03101c12a1263d355112e399bf (diff) | |
parent | 0db6272323fd662cb43f5bb4d24f01daa8a6647d (diff) | |
download | otp-263d1e6bb37cb09f0d09039da625f14db656f552.tar.gz otp-263d1e6bb37cb09f0d09039da625f14db656f552.tar.bz2 otp-263d1e6bb37cb09f0d09039da625f14db656f552.zip |
Merge branch 'maint'
Conflicts:
OTP_VERSION
Diffstat (limited to 'lib/inets/src/http_server/httpd_util.erl')
-rw-r--r-- | lib/inets/src/http_server/httpd_util.erl | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/inets/src/http_server/httpd_util.erl b/lib/inets/src/http_server/httpd_util.erl index fc69baf829..0387d71911 100644 --- a/lib/inets/src/http_server/httpd_util.erl +++ b/lib/inets/src/http_server/httpd_util.erl @@ -42,17 +42,7 @@ ip_address({_,_,_,_,_,_,_,_} = Address, _IpFamily) -> {ok, Address}; ip_address(Host, IpFamily) when ((IpFamily =:= inet) orelse (IpFamily =:= inet6)) -> - inet:getaddr(Host, IpFamily); -ip_address(Host, inet6fb4 = _IpFamily) -> - Inet = case gen_tcp:listen(0, [inet6]) of - {ok, Dummyport} -> - gen_tcp:close(Dummyport), - inet6; - _ -> - inet - end, - inet:getaddr(Host, Inet). - + inet:getaddr(Host, IpFamily). %% lookup |