feat(dns): support DoH, DoT, DoH3, DoQ (#649)

This commit is contained in:
Ekko
2024-11-02 00:45:03 +08:00
committed by GitHub
parent 0e1301b851
commit bfc17c3e2d
4 changed files with 496 additions and 126 deletions

View File

@ -128,7 +128,7 @@ func New(dns *config.Dns, opt *NewOption) (s *Dns, err error) {
func (s *Dns) CheckUpstreamsFormat() error {
for _, upstream := range s.upstream {
_, _, _, err := ParseRawUpstream(upstream.Raw)
_, _, _, _, err := ParseRawUpstream(upstream.Raw)
if err != nil {
return err
}