From 32e275dd5263e1741e44ae2f8b1b0970497872ee Mon Sep 17 00:00:00 2001
From: Pablo Carranza Velez <pablo@edgeandnode.com>
Date: Tue, 25 Mar 2025 17:33:25 -0300
Subject: [PATCH] fix: enable TLS in hyper for DIPs IPFS checks

---
 Cargo.lock             | 16 +++++++++++++++-
 crates/dips/Cargo.toml |  2 +-
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/Cargo.lock b/Cargo.lock
index c1ddcc9a..fe1c63cd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3587,6 +3587,19 @@ dependencies = [
  "tower-service",
 ]
 
+[[package]]
+name = "hyper-tls"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905"
+dependencies = [
+ "bytes",
+ "hyper 0.14.31",
+ "native-tls",
+ "tokio",
+ "tokio-native-tls",
+]
+
 [[package]]
 name = "hyper-tls"
 version = "0.6.0"
@@ -4121,6 +4134,7 @@ dependencies = [
  "http 0.2.12",
  "hyper 0.14.31",
  "hyper-multipart-rfc7578",
+ "hyper-tls 0.5.0",
  "ipfs-api-prelude",
  "thiserror 1.0.69",
 ]
@@ -6036,7 +6050,7 @@ dependencies = [
  "http-body-util",
  "hyper 1.5.1",
  "hyper-rustls 0.27.3",
- "hyper-tls",
+ "hyper-tls 0.6.0",
  "hyper-util",
  "ipnet",
  "js-sys",
diff --git a/crates/dips/Cargo.toml b/crates/dips/Cargo.toml
index a74c29b7..b98e850e 100644
--- a/crates/dips/Cargo.toml
+++ b/crates/dips/Cargo.toml
@@ -24,7 +24,7 @@ derivative = "2.2.0"
 futures = "0.3"
 http = "0.2"
 prost = { workspace = true, optional = true }
-ipfs-api-backend-hyper = { version = "0.6.0", features = ["with-send-sync"] }
+ipfs-api-backend-hyper = { version = "0.6.0", features = ["with-send-sync", "with-hyper-tls"] }
 ipfs-api-prelude = { version = "0.6.0", features = ["with-send-sync"] }
 serde_yaml.workspace = true
 serde.workspace = true