update deprecated Uri::port to port_part

This commit is contained in:
Sean McArthur
2018-11-26 12:14:05 -08:00
parent 459de48093
commit e2fa5497ef
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ base64 = "0.9"
bytes = "0.4" bytes = "0.4"
encoding_rs = "0.8" encoding_rs = "0.8"
futures = "0.1.23" futures = "0.1.23"
http = "0.1.10" http = "0.1.14"
hyper = "0.12.13" hyper = "0.12.13"
hyper-old-types = { version = "0.11", optional = true, features = ["compat"] } hyper-old-types = { version = "0.11", optional = true, features = ["compat"] }
hyper-tls = { version = "0.3", optional = true } hyper-tls = { version = "0.3", optional = true }

View File

@@ -69,7 +69,7 @@ impl Connect for Connector {
ndst.set_host(puri.host().expect("proxy target should have host")) ndst.set_host(puri.host().expect("proxy target should have host"))
.expect("proxy target host should be valid"); .expect("proxy target host should be valid");
ndst.set_port(puri.port()); ndst.set_port(puri.port_part().map(|p| p.as_u16()));
#[cfg(feature = "default-tls")] #[cfg(feature = "default-tls")]
{ {