From 6e2d9f062d20723ada7db3bed0131d9b79636a0e Mon Sep 17 00:00:00 2001 From: whyseu <35478590+whyseu@users.noreply.github.com> Date: Thu, 9 Apr 2026 16:44:11 +0800 Subject: [PATCH] Potential fix for code scanning alert no. 51: Disabled TLS certificate check Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- rust/src/wns/resolver.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/rust/src/wns/resolver.rs b/rust/src/wns/resolver.rs index 8923a8e..36add18 100644 --- a/rust/src/wns/resolver.rs +++ b/rust/src/wns/resolver.rs @@ -53,7 +53,6 @@ pub async fn resolve_handle_with_options( .unwrap_or_else(|| build_resolution_url(&local_part, &domain)); let normalized = format!("{}.{}", local_part, domain); let client = Client::builder() - .danger_accept_invalid_certs(!options.verify_ssl) .timeout(std::time::Duration::from_secs_f64(options.timeout_seconds)) .build() .map_err(|_| HandleResolutionError {