We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0190b70 commit f736895Copy full SHA for f736895
gateway/dns.go
@@ -15,8 +15,8 @@ var defaultResolvers = map[string]string{
15
}
16
17
func newResolver(url string, opts ...doh.Option) (madns.BasicResolver, error) {
18
- if !strings.HasPrefix(url, "https://") {
19
- return nil, fmt.Errorf("invalid resolver url: %s", url)
+ if !strings.HasPrefix(url, "https://") && !strings.HasPrefix(url, "http://") {
+ return nil, fmt.Errorf("invalid DoH resolver URL: %s", url)
20
21
22
return doh.NewResolver(url, opts...)
0 commit comments