This commit is contained in:
Niklas Adolfsson 2018-03-15 16:49:43 +01:00 committed by Svyatoslav Nikolsky
parent fed4864939
commit 6f5bd845ad

View File

@ -231,7 +231,7 @@ impl NetworkConfiguration {
}
}
/// Create new default configuration with sepcified listen port.
/// Create new default configuration with specified listen port.
pub fn new_with_port(port: u16) -> NetworkConfiguration {
let mut config = NetworkConfiguration::new();
config.listen_address = Some(SocketAddr::V4(SocketAddrV4::new(Ipv4Addr::new(0, 0, 0, 0), port)));