From 64ecedb0e964b1490d542b372ec5977db7e0e529 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Mon, 2 Jun 2014 09:06:40 +0200 Subject: [PATCH] bonjour: port numbers and webroot are not fixed --- src/bonjour.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/bonjour.c b/src/bonjour.c index b9e0205d..7b1ea909 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