Give more information to the user in the wrong port init warning (#2853)
* Update initialize.rs * grammar Co-authored-by: teor <teor@riseup.net> Co-authored-by: teor <teor@riseup.net>
This commit is contained in:
parent
2f0926a8e4
commit
4280ef5003
|
@ -246,10 +246,12 @@ async fn open_listener(config: &Config) -> (TcpListener, SocketAddr) {
|
|||
};
|
||||
if config.listen_addr.port() == wrong_net.default_port() {
|
||||
warn!(
|
||||
"We are configured with port {} for {:?}, but that port is the default port for {:?}",
|
||||
"We are configured with port {} for {:?}, but that port is the default port for {:?}. The default port for {:?} is {}.",
|
||||
config.listen_addr.port(),
|
||||
config.network,
|
||||
wrong_net
|
||||
wrong_net,
|
||||
config.network,
|
||||
config.network.default_port(),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue