From 9af9fd140032138894e4781caabee8a5a96edab8 Mon Sep 17 00:00:00 2001
From: Thomas Jansen <mithi@mithi.net>
Date: Sat, 25 Sep 2010 15:00:43 +0200
Subject: output/httpd: bind_to_address support (including IPv6)

Added support for a new optional configuration setting for the httpd output
named "bind_to_address". Setting it to a specific IP address (v4 or v6) will
cause the httpd output to bind to that address exclusively. Supporting
multiple addresses in parallel is future work.

This implements the feature requests #2998 and #2646.
---
 doc/mpdconf.example |  1 +
 doc/user.xml        | 13 +++++++++++--
 2 files changed, 12 insertions(+), 2 deletions(-)

(limited to 'doc')

diff --git a/doc/mpdconf.example b/doc/mpdconf.example
index 3b69e9bb3..b14337c76 100644
--- a/doc/mpdconf.example
+++ b/doc/mpdconf.example
@@ -260,6 +260,7 @@ input {
 #	name		"My HTTP Stream"
 #	encoder		"vorbis"		# optional, vorbis or lame
 #	port		"8000"
+#	bind_to_address	"0.0.0.0"		# optional, IPv4 or IPv6
 ##	quality		"5.0"			# do not define if bitrate is defined
 #	bitrate		"128"			# do not define if quality is defined
 #	format		"44100:16:1"
diff --git a/doc/user.xml b/doc/user.xml
index e1e62eb92..c783a981b 100644
--- a/doc/user.xml
+++ b/doc/user.xml
@@ -914,8 +914,17 @@ cd mpd-version</programlisting>
                   <parameter>P</parameter>
                 </entry>
                 <entry>
-                  Binds the HTTP server to the specified port (on all
-                  interfaces).
+                  Binds the HTTP server to the specified port.
+                </entry>
+              </row>
+              <row>
+                <entry>
+                  <varname>bind_to_address</varname>
+                  <parameter>ADDR</parameter>
+                </entry>
+                <entry>
+                  Binds the HTTP server to the specified address (IPv4 or
+                  IPv6). Multiple addresses in parallel are not supported.
                 </entry>
               </row>
               <row>
-- 
cgit v1.2.3