From 83bfdffcfe5faa1cee6e1e8408d94d82447e551d Mon Sep 17 00:00:00 2001 From: Nick Steel Date: Wed, 13 Mar 2019 18:45:43 +0000 Subject: [PATCH] discover: log the actual HTTP port that is used. If the default port is used (i.e. no command line argument specified), this logging incorrectly reports the server is running at port 0. --- connect/src/discovery.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connect/src/discovery.rs b/connect/src/discovery.rs index 739c62fc..2eacabf1 100644 --- a/connect/src/discovery.rs +++ b/connect/src/discovery.rs @@ -231,7 +231,6 @@ pub fn discovery( let serve = { let http = Http::new(); - debug!("Zeroconf server listening on 0.0.0.0:{}", port); http.serve_addr_handle( &format!("0.0.0.0:{}", port).parse().unwrap(), &handle, @@ -240,6 +239,7 @@ pub fn discovery( }; let s_port = serve.incoming_ref().local_addr().port(); + debug!("Zeroconf server listening on 0.0.0.0:{}", s_port); let server_future = { let handle = handle.clone();