diff --git a/src/admin.c b/src/admin.c index ae5e9ea1..57b256c8 100644 --- a/src/admin.c +++ b/src/admin.c @@ -697,6 +697,15 @@ static inline xmlNodePtr __add_listener(client_t *client, 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; }