Skip to content

Commit

Permalink
add warning regarding tls setting
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Mar 12, 2024
1 parent 46b0243 commit e0e0786
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/reqwest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ pub(crate) fn build_reqwest_clients(config: Option<&Config>) -> (Client, ClientW
Config::load_global()
};

if config.tls_no_verify() {
tracing::warn!("TLS verification is disabled. This is insecure and should only be used for testing or internal networks.");
}

let timeout = 5 * 60;
let client = Client::builder()
.pool_max_idle_per_host(20)
Expand Down

0 comments on commit e0e0786

Please sign in to comment.