reverted change.

pull/4729/head
Greenback 4 years ago
parent 57cb3a67bc
commit e34adc12d9

@ -496,7 +496,7 @@ namespace Emby.Server.Implementations
{ {
var networkConfiguration = ServerConfigurationManager.GetNetworkConfiguration(); var networkConfiguration = ServerConfigurationManager.GetNetworkConfiguration();
HttpPort = networkConfiguration.HttpServerPortNumber; HttpPort = networkConfiguration.HttpServerPortNumber;
HttpsPort = networkConfiguration.HttpsServerPortNumber; HttpsPort = networkConfiguration.HttpsPortNumber;
// Safeguard against invalid configuration // Safeguard against invalid configuration
if (HttpPort == HttpsPort) if (HttpPort == HttpsPort)
@ -919,7 +919,7 @@ namespace Emby.Server.Implementations
var networkConfiguration = ServerConfigurationManager.GetNetworkConfiguration(); var networkConfiguration = ServerConfigurationManager.GetNetworkConfiguration();
// Need to restart if ports have changed // Need to restart if ports have changed
if (networkConfiguration.HttpServerPortNumber != HttpPort || if (networkConfiguration.HttpServerPortNumber != HttpPort ||
networkConfiguration.HttpsServerPortNumber != HttpsPort) networkConfiguration.HttpsPortNumber != HttpsPort)
{ {
if (ServerConfigurationManager.Configuration.IsPortAuthorized) if (ServerConfigurationManager.Configuration.IsPortAuthorized)
{ {

@ -16,7 +16,7 @@ namespace Jellyfin.Networking.Configuration
public const int DefaultHttpPort = 8096; public const int DefaultHttpPort = 8096;
/// <summary> /// <summary>
/// The default value for <see cref="PublicHttpsPort"/> and <see cref="HttpsServerPortNumber"/>. /// The default value for <see cref="PublicHttpsPort"/> and <see cref="HttpsPortNumber"/>.
/// </summary> /// </summary>
public const int DefaultHttpsPort = 8920; public const int DefaultHttpsPort = 8920;
@ -76,7 +76,7 @@ namespace Jellyfin.Networking.Configuration
/// Gets or sets the HTTPS server port number. /// Gets or sets the HTTPS server port number.
/// </summary> /// </summary>
/// <value>The HTTPS server port number.</value> /// <value>The HTTPS server port number.</value>
public int HttpsServerPortNumber { get; set; } = DefaultHttpsPort; public int HttpsPortNumber { get; set; } = DefaultHttpsPort;
/// <summary> /// <summary>
/// Gets or sets a value indicating whether to use HTTPS. /// Gets or sets a value indicating whether to use HTTPS.

Loading…
Cancel
Save