support running multiple DoH/DoT DNSTT tunnels #1508
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces support for multiple DNS-over-HTTPS (DoH) and DNS-over-TLS (DoT) resolvers in the
common/httpclient.go
file, replacing the previous single-resolver approach. It also includes a new test suite to validate the functionality of these resolvers.Enhancements to DNS Resolver Functionality:
dohResolvers
anddotResolvers
) to enable the creation of multiple DNS tunnels. (common/httpclient.go
, common/httpclient.goR43-R64)newDNSTT
tonewDNSTTs
: The function now initializes multipleDNSTT
instances using all resolvers in the lists, instead of a single instance based on a single resolver. (common/httpclient.go
, [1] [2]GetHTTPClient
to integrate multiple DNS tunnels into the HTTP client configuration. (common/httpclient.go
, common/httpclient.goL100-R128)Testing Improvements:
TestDNSResolvers
incommon/httpclient_test.go
to validate each DoH/DoT provider.