forked from jellyfin/jellyfin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request jellyfin#6902 from cvium/migrate_networkconfig
Migrate network configuration safely
- Loading branch information
Showing
11 changed files
with
220 additions
and
326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
Jellyfin.Networking/Configuration/NetworkConfigurationStore.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using MediaBrowser.Common.Configuration; | ||
|
||
namespace Jellyfin.Networking.Configuration | ||
{ | ||
/// <summary> | ||
/// A configuration that stores network related settings. | ||
/// </summary> | ||
public class NetworkConfigurationStore : ConfigurationStore | ||
{ | ||
/// <summary> | ||
/// The name of the configuration in the storage. | ||
/// </summary> | ||
public const string StoreKey = "network"; | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="NetworkConfigurationStore"/> class. | ||
/// </summary> | ||
public NetworkConfigurationStore() | ||
{ | ||
ConfigurationType = typeof(NetworkConfiguration); | ||
Key = StoreKey; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.