diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Program.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index 6fe907ea..b302cc8c 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -949,6 +949,10 @@ namespace slskd endpoints.MapGet(url, async context => { + // at the time of writing, the prometheus library doesn't include a way to add authentication + // to the UseMetricServer() middleware. this is most likely a consequence of me mixing + // and matching minimal API stuff with controllers. if i ever straighten that out, + // this should be revisited. if (!options.Authentication.Disabled) { var auth = context.Request.Headers["Authorization"].FirstOrDefault(); |
