瀏覽代碼

AMBARI-2438. If HTTPS is enabled, server does not pass correct port during bootstrap. (Dmitry Lysnichenko via swagle)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1494777 13f79535-47bb-0310-9956-ffa450edef68
Siddharth Wagle 12 年之前
父節點
當前提交
8f79c64f91
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ambari-server/src/main/java/org/apache/ambari/server/bootstrap/BootStrapImpl.java

+ 1 - 1
ambari-server/src/main/java/org/apache/ambari/server/bootstrap/BootStrapImpl.java

@@ -64,7 +64,7 @@ public class BootStrapImpl {
         InetAddress.getLocalHost().getCanonicalHostName());
     this.clusterOsType = conf.getServerOsType();
     this.projectVersion = ambariMetaInfo.getServerVersion();
-    this.serverPort = conf.getClientApiPort();
+    this.serverPort = (conf.getApiSSLAuthentication())? conf.getClientSSLApiPort() : conf.getClientApiPort();
   }
 
   /**