aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Controllers/SessionController.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-01-18 22:45:04 -0600
committerGitHub <noreply@github.com>2021-01-18 22:45:04 -0600
commit60c35d5ed0b3946c63783afd2b234a0eeb8d6567 (patch)
treeedc61454899c1eed9137bfae2243359876286eea /src/slskd/Controllers/SessionController.cs
parent9a56c438f08238fef633a30124d853c18445803e (diff)
parentee41d6e78859cbf498160fddc7d1ffa14d49f4b6 (diff)
downloadslskd-60c35d5ed0b3946c63783afd2b234a0eeb8d6567.tar.gz
Merge pull request #21 from slskd/opt-in-features
Make Swagger and Prometheus opt-in, authentication opt-out
Diffstat (limited to 'src/slskd/Controllers/SessionController.cs')
-rw-r--r--src/slskd/Controllers/SessionController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Controllers/SessionController.cs b/src/slskd/Controllers/SessionController.cs
index 0f849a2a..5c162708 100644
--- a/src/slskd/Controllers/SessionController.cs
+++ b/src/slskd/Controllers/SessionController.cs
@@ -34,7 +34,7 @@
[ProducesResponseType(typeof(bool), 200)]
public IActionResult Enabled()
{
- return Ok(Startup.EnableSecurity);
+ return Ok(!Program.DisableAuthentication);
}
/// <summary>