mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
Feature: Export used protocol in status XML
This commit is contained in:
parent
e14f8cbd3c
commit
789dd06762
@ -697,6 +697,15 @@ static inline xmlNodePtr __add_listener(client_t *client,
|
|||||||
|
|
||||||
xmlNewTextChild(node, NULL, XMLSTR("tls"), XMLSTR(client->con->tls ? "true" : "false"));
|
xmlNewTextChild(node, NULL, XMLSTR("tls"), XMLSTR(client->con->tls ? "true" : "false"));
|
||||||
|
|
||||||
|
switch (client->protocol) {
|
||||||
|
case ICECAST_PROTOCOL_HTTP:
|
||||||
|
xmlNewTextChild(node, NULL, XMLSTR("protocol"), XMLSTR("http"));
|
||||||
|
break;
|
||||||
|
case ICECAST_PROTOCOL_SHOUTCAST:
|
||||||
|
xmlNewTextChild(node, NULL, XMLSTR("protocol"), XMLSTR("icy"));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user