mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-28 01:52:57 +01:00
fix type for disable feartures
This commit is contained in:
parent
9521de5746
commit
e3b0f02794
@ -336,7 +336,7 @@ impl<H: HttpHandler, U, V> HttpServer<TlsStream<TcpStream>, net::SocketAddr, H,
|
|||||||
Err(io::Error::new(io::ErrorKind::Other, "No socket addresses are bound"))
|
Err(io::Error::new(io::ErrorKind::Other, "No socket addresses are bound"))
|
||||||
} else {
|
} else {
|
||||||
let addrs: Vec<(net::SocketAddr, Socket)> = self.sockets.drain().collect();
|
let addrs: Vec<(net::SocketAddr, Socket)> = self.sockets.drain().collect();
|
||||||
let settings = ServerSettings::new(Some(addrs[0].0), false);
|
let settings = ServerSettings::new(Some(addrs[0].0), &self.host, false);
|
||||||
let acceptor = match TlsAcceptor::builder(pkcs12) {
|
let acceptor = match TlsAcceptor::builder(pkcs12) {
|
||||||
Ok(builder) => {
|
Ok(builder) => {
|
||||||
match builder.build() {
|
match builder.build() {
|
||||||
@ -373,7 +373,7 @@ impl<H: HttpHandler, U, V> HttpServer<SslStream<TcpStream>, net::SocketAddr, H,
|
|||||||
Err(io::Error::new(io::ErrorKind::Other, "No socket addresses are bound"))
|
Err(io::Error::new(io::ErrorKind::Other, "No socket addresses are bound"))
|
||||||
} else {
|
} else {
|
||||||
let addrs: Vec<(net::SocketAddr, Socket)> = self.sockets.drain().collect();
|
let addrs: Vec<(net::SocketAddr, Socket)> = self.sockets.drain().collect();
|
||||||
let settings = ServerSettings::new(Some(addrs[0].0), false);
|
let settings = ServerSettings::new(Some(addrs[0].0), &self.host, false);
|
||||||
let acceptor = match SslAcceptorBuilder::mozilla_intermediate(
|
let acceptor = match SslAcceptorBuilder::mozilla_intermediate(
|
||||||
SslMethod::tls(), &identity.pkey, &identity.cert, &identity.chain)
|
SslMethod::tls(), &identity.pkey, &identity.cert, &identity.chain)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user