|
|
@ -51,7 +51,7 @@ class XdsServerConfigFetcher : public grpc_server_config_fetcher { |
|
|
|
listening_address); |
|
|
|
listening_address); |
|
|
|
auto* listener_watcher_ptr = listener_watcher.get(); |
|
|
|
auto* listener_watcher_ptr = listener_watcher.get(); |
|
|
|
listening_address = absl::StrReplaceAll( |
|
|
|
listening_address = absl::StrReplaceAll( |
|
|
|
xds_client_->bootstrap()->server_listener_resource_name_template(), |
|
|
|
xds_client_->bootstrap().server_listener_resource_name_template(), |
|
|
|
{{"%s", listening_address}}); |
|
|
|
{{"%s", listening_address}}); |
|
|
|
xds_client_->WatchListenerData(listening_address, |
|
|
|
xds_client_->WatchListenerData(listening_address, |
|
|
|
std::move(listener_watcher)); |
|
|
|
std::move(listener_watcher)); |
|
|
@ -328,7 +328,7 @@ grpc_server_config_fetcher* grpc_server_config_fetcher_xds_create( |
|
|
|
return nullptr; |
|
|
|
return nullptr; |
|
|
|
} |
|
|
|
} |
|
|
|
if (xds_client->bootstrap() |
|
|
|
if (xds_client->bootstrap() |
|
|
|
->server_listener_resource_name_template() |
|
|
|
.server_listener_resource_name_template() |
|
|
|
.empty()) { |
|
|
|
.empty()) { |
|
|
|
gpr_log(GPR_ERROR, |
|
|
|
gpr_log(GPR_ERROR, |
|
|
|
"server_listener_resource_name_template not provided in bootstrap " |
|
|
|
"server_listener_resource_name_template not provided in bootstrap " |
|
|
|