aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core/API
diff options
context:
space:
mode:
Diffstat (limited to 'src/slskd/Core/API')
-rw-r--r--src/slskd/Core/API/Controllers/ApplicationController.cs23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/slskd/Core/API/Controllers/ApplicationController.cs b/src/slskd/Core/API/Controllers/ApplicationController.cs
index fc2e31a7..b90655aa 100644
--- a/src/slskd/Core/API/Controllers/ApplicationController.cs
+++ b/src/slskd/Core/API/Controllers/ApplicationController.cs
@@ -169,29 +169,6 @@ namespace slskd.Core.API
}
[ApiExplorerSettings(IgnoreApi = true)]
- [HttpGet("dump")]
- [Authorize(Policy = AuthPolicy.Any, Roles = AuthRole.AdministratorOnly)]
- public async Task<IActionResult> DumpMemory()
- {
- if (OptionsAtStartup.Flags.Dumpable)
- {
- Log.Warning("Dumping application memory...");
-
- using var dumper = new Dumper();
- var file = await dumper.DumpAsync();
-
- Log.Warning("Dump complete");
-
- // the dump contains everything in memory, including secrets. delete it once it has been sent
- var stream = new FileStream(file, FileMode.Open, FileAccess.Read, FileShare.None, bufferSize: 4096, FileOptions.DeleteOnClose);
- return File(stream, "application/octet-stream", "slskd.dmp");
- }
-
- Log.Warning("Unauthorized attempt to dump application memory; Flags.Dumpable is disabled");
- return Forbid();
- }
-
- [ApiExplorerSettings(IgnoreApi = true)]
[HttpPost("loopback")]
[Authorize(Policy = AuthPolicy.Any, Roles = AuthRole.ReadWriteOrAdministrator)]
public IActionResult Loopback([FromBody] object body)