resolve loop when updating local ports
This commit is contained in:
parent
5d4fec778c
commit
886033be24
|
@ -842,6 +842,8 @@ namespace MediaBrowser.Server.Startup.Common
|
||||||
// Need to restart if ports have changed
|
// Need to restart if ports have changed
|
||||||
if (ServerConfigurationManager.Configuration.HttpServerPortNumber != HttpPort ||
|
if (ServerConfigurationManager.Configuration.HttpServerPortNumber != HttpPort ||
|
||||||
ServerConfigurationManager.Configuration.HttpsPortNumber != HttpsPort)
|
ServerConfigurationManager.Configuration.HttpsPortNumber != HttpsPort)
|
||||||
|
{
|
||||||
|
if (ServerConfigurationManager.Configuration.IsPortAuthorized)
|
||||||
{
|
{
|
||||||
ServerConfigurationManager.Configuration.IsPortAuthorized = false;
|
ServerConfigurationManager.Configuration.IsPortAuthorized = false;
|
||||||
ServerConfigurationManager.SaveConfiguration();
|
ServerConfigurationManager.SaveConfiguration();
|
||||||
|
@ -849,6 +851,7 @@ namespace MediaBrowser.Server.Startup.Common
|
||||||
requiresRestart = true;
|
requiresRestart = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!HttpServer.UrlPrefixes.SequenceEqual(GetUrlPrefixes(), StringComparer.OrdinalIgnoreCase))
|
if (!HttpServer.UrlPrefixes.SequenceEqual(GetUrlPrefixes(), StringComparer.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user