devsnd / cherrymusic

Stream your own music collection to all your devices! The easy to use free and open-source music streaming server.
http://www.fomori.org/cherrymusic
GNU General Public License v3.0
1.03k stars 189 forks source link

Not rebinding to localhost on initial setup #725

Open stonewareslord opened 5 years ago

stonewareslord commented 5 years ago

On a fresh install of CherryMusic, you are prompted to listen on localhost only. If you select yes, the config file is written correctly, but the server continues to listen on 0.0.0.0:8080 since that's how it's started.

This could probably be fixed by either rebinding the port if the user selects localhost only or by defaulting to listen on 127.0.0.1 (but then you'd have to rebind to 0.0.0.0 if the user does not check the box).