aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/StartupController.cs
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2021-12-11 12:04:58 -0700
committerGitHub <noreply@github.com>2021-12-11 12:04:58 -0700
commit4d1b8246513b352d65d4db6afcb97ae1e984c760 (patch)
treecd7a3fe42e3ace4cfe0aa3268f5dcee29f855e43 /Jellyfin.Api/Controllers/StartupController.cs
parentfbc79cb4cee4fec27fd440127469f6dcdc1bc7c2 (diff)
parenta87b87825dac31f3739a8dc0254548c3e81a241e (diff)
Merge pull request #6902 from cvium/migrate_networkconfig
Migrate network configuration safely
Diffstat (limited to 'Jellyfin.Api/Controllers/StartupController.cs')
-rw-r--r--Jellyfin.Api/Controllers/StartupController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/StartupController.cs b/Jellyfin.Api/Controllers/StartupController.cs
index a01a617fc..c49bde93f 100644
--- a/Jellyfin.Api/Controllers/StartupController.cs
+++ b/Jellyfin.Api/Controllers/StartupController.cs
@@ -93,7 +93,7 @@ namespace Jellyfin.Api.Controllers
NetworkConfiguration settings = _config.GetNetworkConfiguration();
settings.EnableRemoteAccess = startupRemoteAccessDto.EnableRemoteAccess;
settings.EnableUPnP = startupRemoteAccessDto.EnableAutomaticPortMapping;
- _config.SaveConfiguration("network", settings);
+ _config.SaveConfiguration(NetworkConfigurationStore.StoreKey, settings);
return NoContent();
}