plietar / librespot

Open Source Spotify client library
MIT License
1.13k stars 187 forks source link

Option for forcing port to listen on #253

Open RBogie opened 6 years ago

RBogie commented 6 years ago

Currently, librespot listens on 5353 and a random port. This makes running it on a pc with firewall difficult. It would be nice if there was an option to select a specific port instead.

I've never programmed in rust before, so I haven't made a PR for it. Currently locally I solved it by simply putting my port instead of 0 in the following piece of code: TcpListener::bind(&"0.0.0.0:0".parse().unwrap(), handle)?;.