mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-21 00:05:26 +03:00
reduce work done by system info endpoints
This commit is contained in:
@@ -172,19 +172,9 @@ namespace MediaBrowser.Api.System
|
||||
|
||||
public async Task<object> Get(GetPublicSystemInfo request)
|
||||
{
|
||||
var result = await _appHost.GetSystemInfo(CancellationToken.None).ConfigureAwait(false);
|
||||
var result = await _appHost.GetPublicSystemInfo(CancellationToken.None).ConfigureAwait(false);
|
||||
|
||||
var publicInfo = new PublicSystemInfo
|
||||
{
|
||||
Id = result.Id,
|
||||
ServerName = result.ServerName,
|
||||
Version = result.Version,
|
||||
LocalAddress = result.LocalAddress,
|
||||
WanAddress = result.WanAddress,
|
||||
OperatingSystem = result.OperatingSystem
|
||||
};
|
||||
|
||||
return ToOptimizedResult(publicInfo);
|
||||
return ToOptimizedResult(result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user