mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
added mac address to system info
This commit is contained in:
parent
e04e9e8a70
commit
cc403f2c2f
@ -13,6 +13,12 @@ namespace MediaBrowser.Model.System
|
|||||||
/// <value>The version.</value>
|
/// <value>The version.</value>
|
||||||
public string Version { get; set; }
|
public string Version { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the mac address.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>The mac address.</value>
|
||||||
|
public string MacAddress { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets a value indicating whether this instance has pending restart.
|
/// Gets or sets a value indicating whether this instance has pending restart.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -582,10 +582,28 @@ namespace MediaBrowser.ServerApplication
|
|||||||
InProgressInstallations = InstallationManager.CurrentInstallations.Select(i => i.Item1).ToArray(),
|
InProgressInstallations = InstallationManager.CurrentInstallations.Select(i => i.Item1).ToArray(),
|
||||||
CompletedInstallations = InstallationManager.CompletedInstallations.ToArray(),
|
CompletedInstallations = InstallationManager.CompletedInstallations.ToArray(),
|
||||||
Id = _systemId,
|
Id = _systemId,
|
||||||
ProgramDataPath = ApplicationPaths.ProgramDataPath
|
ProgramDataPath = ApplicationPaths.ProgramDataPath,
|
||||||
|
MacAddress = GetMacAddress()
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the mac address.
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>System.String.</returns>
|
||||||
|
private string GetMacAddress()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return NetworkManager.GetMacAddress();
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Logger.ErrorException("Error getting mac address", ex);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Shuts down.
|
/// Shuts down.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user