]> git.lizzy.rs Git - rust.git/commit
Ignore unknown address types when looking up hosts
authorTobias Bucher <tobiasbucher5991@gmail.com>
Fri, 3 Jun 2016 21:10:36 +0000 (23:10 +0200)
committerTobias Bucher <tobiasbucher5991@gmail.com>
Wed, 29 Jun 2016 09:39:56 +0000 (11:39 +0200)
commitd6237cefcb9fae0286a920b182e9bbc928a57c8a
tree829a95e9e6b3bddb2eb36fd6c5876566379a1d4e
parent366de839ae9794411419c5b579c829e18adde613
Ignore unknown address types when looking up hosts

Previously, any function using a `ToSocketAddrs` input would fail if
passed a hostname that resolves to an address type different from the
ones recognized by Rust.

This also changes the `LookupHost` iterator to only include the known
address types, as a result, it doesn't have to return `Result`s any
more, which are likely misinterpreted as failed name lookups.
src/libstd/net/addr.rs
src/libstd/net/mod.rs
src/libstd/sys/common/net.rs