diff --git a/src/cmd/serve.rs b/src/cmd/serve.rs index 2f2f718e3e..f44f7ce470 100644 --- a/src/cmd/serve.rs +++ b/src/cmd/serve.rs @@ -24,7 +24,7 @@ use std::cell::Cell; use std::fs::read_dir; use std::future::IntoFuture; -use std::net::{SocketAddrV4, TcpListener}; +use std::net::{SocketAddr, TcpListener}; use std::path::{Path, PathBuf, MAIN_SEPARATOR}; use std::sync::mpsc::channel; use std::sync::Mutex; @@ -409,7 +409,7 @@ pub fn serve( messages::report_elapsed_time(start); // Stop right there if we can't bind to the address - let bind_address: SocketAddrV4 = match address.parse() { + let bind_address: SocketAddr = match address.parse() { Ok(a) => a, Err(_) => return Err(anyhow!("Invalid address: {}.", address)), };