From 0d882cc204536edd8a92912eea5d9a47989b6f2c Mon Sep 17 00:00:00 2001 From: Lev Kokotov Date: Fri, 28 Apr 2023 18:05:28 -0700 Subject: [PATCH] thats it --- src/config.rs | 5 +++++ src/server.rs | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/config.rs b/src/config.rs index 061a758..4af7bed 100644 --- a/src/config.rs +++ b/src/config.rs @@ -861,6 +861,11 @@ impl Config { info!("TLS support is disabled"); } }; + info!("Server TLS enabled: {}", self.general.server_tls); + info!( + "Server TLS certificate verification: {}", + self.general.verify_server_certificate + ); for (pool_name, pool_config) in &self.pools { // TODO: Make this output prettier (maybe a table?) diff --git a/src/server.rs b/src/server.rs index a04dc5f..be74acc 100644 --- a/src/server.rs +++ b/src/server.rs @@ -194,6 +194,8 @@ impl Server { match response { // Server supports TLS 'S' => { + debug!("Connecting to server using TLS"); + let mut root_store = RootCertStore::empty(); root_store.add_server_trust_anchors( webpki_roots::TLS_SERVER_ROOTS.0.iter().map(|ta| {