mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
Feature: Expose TLS status in <listener> tags.
This exposes the TLS status as <tls> tag in the <listener> tag. The tag contains a bool ("true" or "false"). TLS mode, version and other parameters are out of the scope of this tag and may be added as independed tags in later commits.
This commit is contained in:
parent
927ccf5213
commit
91eb78fc3a
@ -697,6 +697,8 @@ static inline xmlNodePtr __add_listener(client_t *client,
|
|||||||
if (client->role)
|
if (client->role)
|
||||||
xmlNewChild(node, NULL, XMLSTR("role"), XMLSTR(client->role));
|
xmlNewChild(node, NULL, XMLSTR("role"), XMLSTR(client->role));
|
||||||
|
|
||||||
|
xmlNewChild(node, NULL, XMLSTR("tls"), XMLSTR(client->con->ssl ? "true" : "false"));
|
||||||
|
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user