diff options
| author | Cody Robibero <cody@robibe.ro> | 2021-11-13 07:02:39 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-13 07:02:39 -0700 |
| commit | 01a1209f0e37592aaf79875ec4ebbdd35b05749e (patch) | |
| tree | 93c0cd5de777cb2bf0e13719c56e88af1150776c /Jellyfin.Api | |
| parent | 1fbe1266e23267abb3e5905f60aebcb34cbac5ed (diff) | |
| parent | 5a65bc1e696b362760939107a989d24645676d4f (diff) | |
Merge pull request #6836 from cvium/apphost_light_cleanup
Diffstat (limited to 'Jellyfin.Api')
| -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); } } |
