mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 01:05:19 +03:00
Changes to support network config
This commit is contained in:
@@ -51,10 +51,6 @@ namespace Jellyfin.Api.Controllers
|
||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
public ActionResult<ServerConfiguration> GetConfiguration()
|
||||
{
|
||||
// TODO: Temp workaround until the web can be changed.
|
||||
var net = _configurationManager.GetNetworkConfiguration();
|
||||
ClassMigrationHelper.CopyProperties(net, _configurationManager.Configuration);
|
||||
|
||||
return _configurationManager.Configuration;
|
||||
}
|
||||
|
||||
@@ -70,12 +66,6 @@ namespace Jellyfin.Api.Controllers
|
||||
public ActionResult UpdateConfiguration([FromBody, Required] ServerConfiguration configuration)
|
||||
{
|
||||
_configurationManager.ReplaceConfiguration(configuration);
|
||||
|
||||
// TODO: Temp workaround until the web can be changed.
|
||||
var network = _configurationManager.GetNetworkConfiguration();
|
||||
ClassMigrationHelper.CopyProperties(configuration, network);
|
||||
_configurationManager.SaveConfiguration("Network", network);
|
||||
|
||||
return NoContent();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user