Skip to content

Commit 036ca75

Browse files
authored
chore(tls): Install default rustls provider in main (#4083)
* chore(tls): Move rustls into dedicated crate Signed-off-by: Scott Fleener <[email protected]> * chore(tls): Remove extraneous provider installs from tests Signed-off-by: Scott Fleener <[email protected]> * chore(tls): Install default rustls provider in main Signed-off-by: Scott Fleener <[email protected]> --------- Signed-off-by: Scott Fleener <[email protected]>
1 parent 98e731d commit 036ca75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

linkerd2-proxy/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ futures = { version = "0.3", default-features = false }
2323
kubert-prometheus-tokio = { version = "0.2.0", features = ["rt"] }
2424
linkerd-app = { path = "../linkerd/app" }
2525
linkerd-metrics = { path = "../linkerd/metrics" }
26-
# We don't actually use code from this crate in `main`; it's here only so we can
27-
# control its feature flags.
2826
linkerd-rustls = { path = "../linkerd/rustls" }
2927
linkerd-signal = { path = "../linkerd/signal" }
3028
num_cpus = "1"

linkerd2-proxy/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ fn main() {
3535
vendor = BUILD_INFO.vendor,
3636
);
3737

38+
linkerd_rustls::install_default_provider();
39+
3840
let mut metrics = linkerd_metrics::prom::Registry::default();
3941

4042
// Load configuration from the environment without binding ports.

0 commit comments

Comments
 (0)