diff options
| author | cvium <clausvium@gmail.com> | 2021-11-13 14:37:26 +0100 |
|---|---|---|
| committer | cvium <clausvium@gmail.com> | 2021-11-13 14:37:26 +0100 |
| commit | 5a65bc1e696b362760939107a989d24645676d4f (patch) | |
| tree | 9d850018eac90eeb6982c760e1518f1602a4a981 /Jellyfin.Api/Controllers/SystemController.cs | |
| parent | 4c88bf3fe3ef2e02632655acfcb8db18fd9f7d82 (diff) | |
Very light cleanup in applicationhost
Diffstat (limited to 'Jellyfin.Api/Controllers/SystemController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/SystemController.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/SystemController.cs b/Jellyfin.Api/Controllers/SystemController.cs index 904738bb4..2ff85fd2a 100644 --- a/Jellyfin.Api/Controllers/SystemController.cs +++ b/Jellyfin.Api/Controllers/SystemController.cs @@ -212,10 +212,13 @@ namespace Jellyfin.Api.Controllers /// <returns>An <see cref="IEnumerable{WakeOnLanInfo}"/> with the WakeOnLan infos.</returns> [HttpGet("WakeOnLanInfo")] [Authorize(Policy = Policies.DefaultAuthorization)] + [Obsolete("This endpoint is obsolete.")] [ProducesResponseType(StatusCodes.Status200OK)] public ActionResult<IEnumerable<WakeOnLanInfo>> GetWakeOnLanInfo() { - var result = _appHost.GetWakeOnLanInfo(); + var result = _network.GetMacAddresses() + .Select(i => new WakeOnLanInfo(i)) + .ToList(); return Ok(result); } } |
