Skip to content

Commit 27a57ff

Browse files
authored
Merge pull request #97 from Phala-Network/no-tls-bypass
Remove insecure TLS certificate bypass
2 parents b3fa168 + 765888f commit 27a57ff

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/collateral.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,7 @@ fn extract_fmspc_and_ca(pem_chain: &str) -> Result<(String, &'static str)> {
248248
fn build_http_client() -> Result<reqwest::Client> {
249249
let builder = reqwest::Client::builder();
250250
#[cfg(not(feature = "js"))]
251-
let builder = builder
252-
.danger_accept_invalid_certs(true)
253-
.timeout(Duration::from_secs(180));
251+
let builder = builder.timeout(Duration::from_secs(180));
254252
Ok(builder.build()?)
255253
}
256254

0 commit comments

Comments
 (0)