Hello,

I wrote a patch that allows the built-in http streaming server to bind 
to a single ip address (interface) instead of all addresses:

audio_output {
     type        "httpd"
     name        "Stream"
     encoder     "vorbis"
     bind        "127.0.0.1"
     port        "8000"
     bitrate     "128"
     format      "44100:16:2"
}

As you can see I've added a 'bind' parameter for specifying the 
interface/ip you wish to use. If it's not provided it defaults to 
0.0.0.0. I'm currently using this functionality to bind the streaming 
http server to localhost so that I can then ssh tunnel the port for 
secure streaming.

This is a pretty small patch. If you're interested I can email the list 
with the git-diff patch or create a github/git.musicpd.org repo and push 
there; whatever's most convenient.

Thanks for a great music player!

~Justin


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team

Reply via email to