Open hamedsbt opened 3 months ago
Commit 4b9fdac has introduced support for skip-cert-verify. You can try writing it like this:
@xuelide Hi, thank you for your help.
Does it work for tls://78.157.42.100/#skip-cert-verify=true
too?
@hamedsbt no,only DOH
Verify steps
Description
In my region, almost all known DNS over HTTPS (DoH) servers have been blocked using a DNS filtering method, where all DNS requests are forwarded to blocking systems. However, they are still accessible by their IP addresses. I've tried to use a DoH server with its IP address directly in the config:
But I received this error:
re-creating the http client due to requesting https://178.33.54.170:443/dns-query: Get "https://178.33.54.170:443/dns-query?dns=AAABAAABAAAAAAAAA2RvcQhjYXB0bmVtbwJpbgAAHAAB": tls: failed to verify certificate: x509: cannot validate certificate for 178.33.54.170 because it doesn't contain any IP SANs
As you might have guessed, I need to define that server IP address manually. However, accessing and modifying the OS hosts file is not an ideal or user-friendly solution.
Therefore, we should instruct "mihomo" on how to specify the IP address for the specific DoH host of "default-nameserver".
Possible Solution