From a28e271370b737f50efc329b1ce8a312ee4e1654 Mon Sep 17 00:00:00 2001 From: Ali Beyad Date: Thu, 19 Dec 2024 21:54:45 +0000 Subject: [PATCH] mobile: Allow default runtime guard values to be overridden Signed-off-by: Ali Beyad --- mobile/library/cc/engine_builder.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mobile/library/cc/engine_builder.cc b/mobile/library/cc/engine_builder.cc index 3db4e27a87d3..4f3bb009c163 100644 --- a/mobile/library/cc/engine_builder.cc +++ b/mobile/library/cc/engine_builder.cc @@ -852,19 +852,19 @@ std::unique_ptr EngineBuilder::generate *(*envoy_layer.mutable_fields())["envoy"].mutable_struct_value(); ProtobufWkt::Struct& reloadable_features = *(*runtime_values.mutable_fields())["reloadable_features"].mutable_struct_value(); + (*reloadable_features.mutable_fields())["prefer_quic_client_udp_gro"].set_bool_value(true); for (auto& guard_and_value : runtime_guards_) { (*reloadable_features.mutable_fields())[guard_and_value.first].set_bool_value( guard_and_value.second); } - (*reloadable_features.mutable_fields())["prefer_quic_client_udp_gro"].set_bool_value(true); ProtobufWkt::Struct& restart_features = *(*runtime_values.mutable_fields())["restart_features"].mutable_struct_value(); + (*runtime_values.mutable_fields())["disallow_global_stats"].set_bool_value(true); + (*runtime_values.mutable_fields())["enable_dfp_dns_trace"].set_bool_value(true); for (auto& guard_and_value : restart_runtime_guards_) { (*restart_features.mutable_fields())[guard_and_value.first].set_bool_value( guard_and_value.second); } - (*runtime_values.mutable_fields())["disallow_global_stats"].set_bool_value(true); - (*runtime_values.mutable_fields())["enable_dfp_dns_trace"].set_bool_value(true); ProtobufWkt::Struct& overload_values = *(*envoy_layer.mutable_fields())["overload"].mutable_struct_value(); (*overload_values.mutable_fields())["global_downstream_max_connections"].set_string_value(