浏览代码

Fix ssl port info on dashboard

Mike 10 年之前
父节点
当前提交
ec947acfde
共有 2 个文件被更改,包括 7 次插入0 次删除
  1. 6 0
      MediaBrowser.Model/System/SystemInfo.cs
  2. 1 0
      MediaBrowser.Server.Startup.Common/ApplicationHost.cs

+ 6 - 0
MediaBrowser.Model/System/SystemInfo.cs

@@ -122,6 +122,12 @@ namespace MediaBrowser.Model.System
         /// <value>The HTTP server port number.</value>
         public int HttpServerPortNumber { get; set; }
 
+         /// <summary>
+         /// Gets or sets the value pointing to the file system where the ssl certiifcate is located.
+         /// </summary>
+         /// <value>The value pointing to the file system where the ssl certiifcate is located.</value>
+         public bool UseHttps { get; set; }
+
         /// <summary>
         /// Gets or sets the HTTPS server port number.
         /// </summary>

+ 1 - 0
MediaBrowser.Server.Startup.Common/ApplicationHost.cs

@@ -965,6 +965,7 @@ namespace MediaBrowser.Server.Startup.Common
                 CachePath = ApplicationPaths.CachePath,
                 MacAddress = GetMacAddress(),
                 HttpServerPortNumber = HttpServerPort,
+                UseHttps = this.ServerConfigurationManager.Configuration.UseHttps,
                 HttpsPortNumber = HttpsServerPort,
                 OperatingSystem = OperatingSystemDisplayName,
                 CanSelfRestart = CanSelfRestart,