@@ -162,6 +162,7 @@ struct aws_http_proxy_user_data *aws_http_proxy_user_data_new(
162162 user_data -> original_channel_on_setup = on_channel_setup ;
163163 user_data -> original_channel_on_shutdown = on_channel_shutdown ;
164164 user_data -> requested_event_loop = options .requested_event_loop ;
165+ user_data -> host_resolution_config = options .host_resolution_config ;
165166 user_data -> prior_knowledge_http2 = options .prior_knowledge_http2 ;
166167
167168 /* one and only one setup callback must be valid */
@@ -1048,6 +1049,7 @@ static int s_aws_http_client_connect_via_forwarding_proxy(const struct aws_http_
10481049 options_copy .on_shutdown = s_aws_http_on_client_connection_http_proxy_shutdown_fn ;
10491050 options_copy .tls_options = options -> proxy_options -> tls_options ;
10501051 options_copy .requested_event_loop = options -> requested_event_loop ;
1052+ options_copy .host_resolution_config = options -> host_resolution_config ;
10511053 options_copy .prior_knowledge_http2 = false; /* ToDo, expose the protocol specific config for proxy connection. */
10521054
10531055 int result = aws_http_client_connect_internal (& options_copy , s_proxy_http_request_transform );
@@ -1084,6 +1086,7 @@ static int s_create_tunneling_connection(struct aws_http_proxy_user_data *user_d
10841086 connect_options .http1_options = NULL ; /* ToDo, expose the protocol specific config for proxy connection. */
10851087 connect_options .http2_options = NULL ; /* ToDo */
10861088 connect_options .requested_event_loop = user_data -> requested_event_loop ;
1089+ connect_options .host_resolution_config = user_data -> host_resolution_config ;
10871090
10881091 int result = aws_http_client_connect (& connect_options );
10891092 if (result == AWS_OP_ERR ) {
@@ -1642,6 +1645,7 @@ int aws_http_proxy_new_socket_channel(
16421645 http_connection_options .on_setup = NULL ; /* use channel callbacks, not http callbacks */
16431646 http_connection_options .on_shutdown = NULL ; /* use channel callbacks, not http callbacks */
16441647 http_connection_options .requested_event_loop = channel_options -> requested_event_loop ;
1648+ http_connection_options .host_resolution_config = channel_options -> host_resolution_override_config ;
16451649
16461650 if (s_aws_http_client_connect_via_tunneling_proxy (
16471651 & http_connection_options , s_http_proxied_socket_channel_setup , s_http_proxied_socket_channel_shutdown )) {
0 commit comments