fix(uri): fix Uri parsing of IPv6 and userinfo

Closes #1269
This commit is contained in:
Sean McArthur
2017-07-26 16:01:30 -07:00
parent 4bd9746a0f
commit 7081c4498e
2 changed files with 80 additions and 10 deletions

View File

@@ -48,6 +48,6 @@ impl Iterator for IpAddrs {
pub type Answer = io::Result<IpAddrs>;
fn work(hostname: String, port: u16) -> Answer {
debug!("resolve {:?}:{:?}", hostname, port);
debug!("resolve host={:?}, port={:?}", hostname, port);
(&*hostname, port).to_socket_addrs().map(|i| IpAddrs { iter: i })
}