mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
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.
This commit is contained in:
parent
4c1562f245
commit
83bfdffcfe
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,6 @@ pub fn discovery(
|
||||||
|
|
||||||
let serve = {
|
let serve = {
|
||||||
let http = Http::new();
|
let http = Http::new();
|
||||||
debug!("Zeroconf server listening on 0.0.0.0:{}", port);
|
|
||||||
http.serve_addr_handle(
|
http.serve_addr_handle(
|
||||||
&format!("0.0.0.0:{}", port).parse().unwrap(),
|
&format!("0.0.0.0:{}", port).parse().unwrap(),
|
||||||
&handle,
|
&handle,
|
||||||
|
@ -240,6 +239,7 @@ pub fn discovery(
|
||||||
};
|
};
|
||||||
|
|
||||||
let s_port = serve.incoming_ref().local_addr().port();
|
let s_port = serve.incoming_ref().local_addr().port();
|
||||||
|
debug!("Zeroconf server listening on 0.0.0.0:{}", s_port);
|
||||||
|
|
||||||
let server_future = {
|
let server_future = {
|
||||||
let handle = handle.clone();
|
let handle = handle.clone();
|
||||||
|
|
Loading…
Reference in a new issue