From 305b84752ca458d34bedbe8be3d22c0b1f9ec7a9 Mon Sep 17 00:00:00 2001 From: Matthew Lear Date: Sat, 12 Aug 2023 18:44:07 +1000 Subject: [PATCH] Fixes #430 /admin/listclients with URL auth Normally the /admin/listclients?mountpoint=/stream URL is accessible by authenticating with the (when not using Mountpoint Authentication. However when specifying with the stream_auth option the end-point returns 403 Forbidden with "Mountpoint in use". This PR correctly detects /admin/listclients as a source admin request and fixes #430 --- src/auth.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/auth.c b/src/auth.c index 3b3fa6e3..aa7924b8 100644 --- a/src/auth.c +++ b/src/auth.c @@ -606,6 +606,11 @@ void auth_postprocess_source (auth_client *auth_user) DEBUG2 ("metadata request (%s, %s)", req, mount); admin_mount_request (client); } + else if (strncmp ("/admin/listclients", req, 18) == 0) + { + DEBUG1 ("admin listclients request on mount %s", mount); + admin_mount_request (client); + } else { DEBUG1 ("on mountpoint %s", mount);