mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
Update: Disable links and player on status page when direct access is not allowed
Closes: #2409
This commit is contained in:
parent
b7e204e3a7
commit
6aa937e55f
@ -1,5 +1,6 @@
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
<xsl:template name="player">
|
||||
<xsl:if test="not(allow-direct-access) or allow-direct-access = 'true'">
|
||||
<div>
|
||||
<ul class="playlists">
|
||||
<li><a href="{@mount}">Direct</a></li>
|
||||
@ -19,5 +20,6 @@
|
||||
</div>
|
||||
</xsl:if>
|
||||
</div>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
|
@ -1024,6 +1024,8 @@ static void source_apply_mount (ice_config_t *config, source_t *source, mount_pr
|
||||
source->allow_direct_access = mountinfo->allow_direct_access;
|
||||
}
|
||||
|
||||
stats_event(source->mount, "allow-direct-access", source->allow_direct_access ? "true" : "false");
|
||||
|
||||
/* if a setting is available in the mount details then use it, else
|
||||
* check the parser details. */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user