Bug#756084: Patch
Jelmer Vernooij
jelmer at debian.org
Thu May 7 20:53:26 UTC 2015
The attached patch fixes this issue.
-------------- next part --------------
Description: Fix listening on IPv6 when enabled.
Author: Jelmer Vernooij <jelmer at debian.org>
Bug: https://github.com/ejurgensen/forked-daapd/issues/147
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=756084
Forwarded: https://github.com/ejurgensen/forked-daapd/pull/148
--- forked-daapd-22.3+dfsg1.orig/src/httpd.c
+++ forked-daapd-22.3+dfsg1/src/httpd.c
@@ -1356,7 +1356,7 @@ httpd_init(void)
* as IPv6 might not be supported on the system.
* We still warn about the failure, in case there's another issue.
*/
- ret = evhttp_bind_socket(evhttpd, "0.0.0.0", port);
+ ret = evhttp_bind_socket(evhttpd, v6enabled?"::":"0.0.0.0", port);
if (ret < 0)
{
DPRINTF(E_FATAL, L_HTTPD, "Could not bind INADDR_ANY:%d\n", port);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20150507/b060a421/attachment-0001.sig>
More information about the pkg-multimedia-maintainers
mailing list