浏览代码

修复自定义内置es端口错误

zhou-hao 5 年之前
父节点
当前提交
74df56eb13

+ 1 - 1
jetlinks-components/elasticsearch-component/src/main/java/org/jetlinks/community/elastic/search/embedded/EmbeddedElasticSearchProperties.java

@@ -23,7 +23,7 @@ public class EmbeddedElasticSearchProperties {
 
     public Settings.Builder applySetting(Settings.Builder settings) {
         return settings.put("network.host", host)
-            .put("http.port", 9200)
+            .put("http.port", port)
             .put("path.data", dataPath)
             .put("path.home", homePath);
     }