From 7c801a85fb46c0de8fd6a2039d49ed29de16b279 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Sat, 1 Feb 2025 18:34:59 +1100 Subject: [PATCH] fix: Ignore warning for Insecure request since we are manually verifying the cert --- troubleshooting.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/troubleshooting.py b/troubleshooting.py index 4959c35..4670f2c 100644 --- a/troubleshooting.py +++ b/troubleshooting.py @@ -17,6 +17,9 @@ import dns.asyncresolver import httpx from requests_doh import DNSOverHTTPSSession, add_dns_provider import domainLookup +import urllib3 + +urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) # Disable insecure request warnings (since we are manually verifying the certificate) doh_url = "https://hnsdoh.com/dns-query"