Skip to content

Commit

Permalink
Improved comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ntim committed Aug 3, 2022
1 parent 77c95cb commit a5d5ddf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ pub fn build_proxy_connector(
tls_settings: MaybeTlsSettings,
proxy_config: &ProxyConfig,
) -> Result<ProxyConnector<HttpsConnector<HttpConnector>>, HttpError> {
// Create dedicated TLS connector with user tls settings.
// Create dedicated TLS connector for the proxied connection with user tls settings.
let tls = tls_connector_builder(&tls_settings)
.context(BuildTlsConnectorSnafu)?
.build();
let https = build_tls_connector(tls_settings)?;
let mut proxy = ProxyConnector::new(https).unwrap();
// Make proxy connector aware of user TLS settings:
// Make proxy connector aware of user TLS settings by setting the TLS connector:
// https://github.com/vectordotdev/vector/issues/13683
proxy.set_tls(Some(tls));
proxy_config
Expand Down

0 comments on commit a5d5ddf

Please sign in to comment.