bonjour: port numbers and webroot are not fixed

This commit is contained in:
Damjan Marion 2014-06-02 09:06:40 +02:00
parent 8daf19d70e
commit 64ecedb0e9

View 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