Rename additional values in NetworkConfiguration and add migration for all changed values

This commit is contained in:
Shadowghost
2023-07-03 14:03:33 +02:00
parent 3f65851520
commit 32ac3b580c
5 changed files with 226 additions and 30 deletions

View File

@@ -57,8 +57,8 @@ namespace Emby.Server.Implementations.EntryPoints
return new StringBuilder(32)
.Append(config.EnableUPnP).Append(Separator)
.Append(config.PublicPort).Append(Separator)
.Append(config.PublicHttpsPort).Append(Separator)
.Append(config.PublicPortHttp).Append(Separator)
.Append(config.PublicPortHttps).Append(Separator)
.Append(_appHost.HttpPort).Append(Separator)
.Append(_appHost.HttpsPort).Append(Separator)
.Append(_appHost.ListenWithHttps).Append(Separator)
@@ -146,11 +146,11 @@ namespace Emby.Server.Implementations.EntryPoints
private IEnumerable<Task> CreatePortMaps(INatDevice device)
{
var config = _config.GetNetworkConfiguration();
yield return CreatePortMap(device, _appHost.HttpPort, config.PublicPort);
yield return CreatePortMap(device, _appHost.HttpPort, config.PublicPortHttp);
if (_appHost.ListenWithHttps)
{
yield return CreatePortMap(device, _appHost.HttpsPort, config.PublicHttpsPort);
yield return CreatePortMap(device, _appHost.HttpsPort, config.PublicPortHttps);
}
}