fix: ElasticsearchStarter有点小瑕疵,嗷嗷嗷

This commit is contained in:
Wendal Chen 2019-04-16 00:11:50 +08:00
parent 009698b086
commit ef60a59406

View File

@ -56,7 +56,7 @@ public class ElasticsearchStarter implements ServerFace {
// 把所有elasticsearch开头的配置都放入Settings里面 // 把所有elasticsearch开头的配置都放入Settings里面
for (String key: conf.keys()) { for (String key: conf.keys()) {
if (key.startsWith(PRE)) { if (key.startsWith(PRE) && !key.equals(PROP_HOST) && !key.equals(PROP_PORT)) {
builder.put(key.substring(PRE.length()), conf.get(key)); builder.put(key.substring(PRE.length()), conf.get(key));
} }
} }