htsp: provide webroot in htsp hello message.

This commit is contained in:
Adam Sutton 2013-01-05 19:49:43 +00:00
parent 4c681bd70e
commit c13eb6e607

View file

@ -716,6 +716,8 @@ htsp_method_hello(htsp_connection_t *htsp, htsmsg_t *in)
htsmsg_add_str(r, "servername", "HTS Tvheadend");
htsmsg_add_str(r, "serverversion", tvheadend_version);
htsmsg_add_bin(r, "challenge", htsp->htsp_challenge, 32);
if (tvheadend_webroot)
htsmsg_add_str(r, "webroot", tvheadend_webroot);
/* Capabilities */
htsmsg_add_msg(r, "servercapability", tvheadend_capabilities_list(1));