mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
fix addr in wrong place
This commit is contained in:
parent
d923f3bad3
commit
7a58e6d561
1 changed files with 4 additions and 2 deletions
|
@ -220,6 +220,9 @@ pub fn discovery(handle: &Handle, config: ConnectConfig, device_id: String)
|
||||||
#[cfg(feature = "with-dns-sd")]
|
#[cfg(feature = "with-dns-sd")]
|
||||||
let port = serve.incoming_ref().local_addr().port();
|
let port = serve.incoming_ref().local_addr().port();
|
||||||
|
|
||||||
|
#[cfg(not(feature = "with-dns-sd"))]
|
||||||
|
let addr = serve.incoming_ref().local_addr();
|
||||||
|
|
||||||
let server_future = {
|
let server_future = {
|
||||||
let handle = handle.clone();
|
let handle = handle.clone();
|
||||||
serve.for_each(move |connection| {
|
serve.for_each(move |connection| {
|
||||||
|
@ -238,10 +241,9 @@ pub fn discovery(handle: &Handle, config: ConnectConfig, device_id: String)
|
||||||
port,
|
port,
|
||||||
&["VERSION=1.0", "CPath=/"]).unwrap();
|
&["VERSION=1.0", "CPath=/"]).unwrap();
|
||||||
|
|
||||||
#[cfg(not(feature = "with-dns-sd"))]
|
|
||||||
let addr = serve.incoming_ref().local_addr();
|
|
||||||
#[cfg(not(feature = "with-dns-sd"))]
|
#[cfg(not(feature = "with-dns-sd"))]
|
||||||
let responder = mdns::Responder::spawn(&handle)?;
|
let responder = mdns::Responder::spawn(&handle)?;
|
||||||
|
|
||||||
#[cfg(not(feature = "with-dns-sd"))]
|
#[cfg(not(feature = "with-dns-sd"))]
|
||||||
let svc = responder.register(
|
let svc = responder.register(
|
||||||
"_spotify-connect._tcp".to_owned(),
|
"_spotify-connect._tcp".to_owned(),
|
||||||
|
|
Loading…
Reference in a new issue