This commit is contained in:
Niklas Adolfsson 2018-03-15 16:49:43 +01:00 committed by Svyatoslav Nikolsky
parent fed4864939
commit 6f5bd845ad
1 changed files with 1 additions and 1 deletions

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)));