Browse Source

es带密码连接失败

pull/906/head
张志炜 2 years ago
parent
commit
a6744a818e
  1. 2
      aspnet-core/modules/elasticsearch/LINGYUN.Abp.Elasticsearch/LINGYUN/Abp/Elasticsearch/AbpElasticsearchOptions.cs

2
aspnet-core/modules/elasticsearch/LINGYUN.Abp.Elasticsearch/LINGYUN/Abp/Elasticsearch/AbpElasticsearchOptions.cs

@ -57,7 +57,7 @@ namespace LINGYUN.Abp.Elasticsearch
configuration.DefaultFieldNameInferrer((name) => name);
}
if (UserName.IsNullOrWhiteSpace())
if (!UserName.IsNullOrWhiteSpace())
{
configuration.BasicAuthentication(UserName, Password);
}

Loading…
Cancel
Save