Skip to content

Commit

Permalink
es带密码连接失败
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzw218 committed Nov 13, 2023
1 parent b4211a0 commit a6744a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ internal IConnectionSettingsValues CreateConfiguration()
configuration.DefaultFieldNameInferrer((name) => name);
}

if (UserName.IsNullOrWhiteSpace())
if (!UserName.IsNullOrWhiteSpace())
{
configuration.BasicAuthentication(UserName, Password);
}
Expand Down

0 comments on commit a6744a8

Please sign in to comment.