aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/util/cli_credentials.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/cpp/util/cli_credentials.cc')
-rw-r--r--test/cpp/util/cli_credentials.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cpp/util/cli_credentials.cc b/test/cpp/util/cli_credentials.cc
index 1f047ca3da..2494e22abb 100644
--- a/test/cpp/util/cli_credentials.cc
+++ b/test/cpp/util/cli_credentials.cc
@@ -67,7 +67,7 @@ const grpc::string CliCredentials::GetCredentialUsage() const {
}
const grpc::string CliCredentials::GetSslTargetNameOverride() const {
- return FLAGS_enable_ssl ? FLAGS_ssl_target : "";
+ return (FLAGS_enable_ssl || FLAGS_use_auth) ? FLAGS_ssl_target : "";
}
} // namespace testing