]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
bonjour: port numbers and webroot are not fixed
authorDamjan Marion <damjan.marion@gmail.com>
Mon, 2 Jun 2014 07:06:40 +0000 (09:06 +0200)
committerDamjan Marion <damjan.marion@gmail.com>
Mon, 2 Jun 2014 12:28:28 +0000 (14:28 +0200)
src/bonjour.c

index b9e0205d680b438689f930a825223620b3fbbbfc..7b1ea909c12425aac147744b50922dbf50ddb5a3 100644 (file)
@@ -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