From: Damjan Marion Date: Mon, 2 Jun 2014 07:06:40 +0000 (+0200) Subject: bonjour: port numbers and webroot are not fixed X-Git-Tag: v4.1~2009^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64ecedb0e964b1490d542b372ec5977db7e0e529;p=thirdparty%2Ftvheadend.git bonjour: port numbers and webroot are not fixed --- diff --git a/src/bonjour.c b/src/bonjour.c index b9e0205d6..7b1ea909c 100644 --- a/src/bonjour.c +++ b/src/bonjour.c @@ -104,12 +104,14 @@ void bonjour_init(void) { txt_rec_t txt_rec_http[] = { - { "path", "/" }, + { "path", tvheadend_webroot }, { .key = NULL } }; - bonjour_start_service(&svc_http, "_http._tcp", 9981, txt_rec_http); - bonjour_start_service(&svc_htsp, "_htsp._tcp", 9982, NULL); + bonjour_start_service(&svc_http, "_http._tcp", tvheadend_webui_port, + txt_rec_http); + + bonjour_start_service(&svc_htsp, "_htsp._tcp", tvheadend_htsp_port, NULL); } void