Replies: 2 comments 1 reply
-
I found a similar function in another project, I hope it can provide a useful reference: |
Beta Was this translation helpful? Give feedback.
-
there is another possible situation: |
Beta Was this translation helpful? Give feedback.
-
It is well known that China has serious DNS pollution and IP blocking. On the other hand, most home broadband in China now has IPV6 dual stack. DNSCRYPT is used with proxy software in most cases in China, and proxy software usually only supports connections from IPV4 addresses, so for most blocked websites, returning IPV6 addresses will cause trouble. The option "block_ipv6=true" solves this problem nicely. But there is a situation, depending on the censorship of the national firewall, some IPV6 only websites can be directly linked, and these websites do not have IPV4 addresses, which makes me unable to access these websites.
Therefore, I want to add an option, such as "prefer_ipv4=true", when returning dual stack results, filter out IPv6 results, and return IPv6 results when the result is only ipv6.
Beta Was this translation helpful? Give feedback.
All reactions