diff --git a/doh-client/google.go b/doh-client/google.go index e1f0454..d985e8a 100644 --- a/doh-client/google.go +++ b/doh-client/google.go @@ -88,7 +88,7 @@ func (c *Client) handlerFuncGoogle(w dns.ResponseWriter, r *dns.Msg, isTCP bool) return } req.Header.Set("Accept", "application/json") - req.Header.Set("User-Agent", "DNS-over-HTTPS/1.0 (+https://github.com/m13253/dns-over-https)") + req.Header.Set("User-Agent", "DNS-over-HTTPS/1.1 (+https://github.com/m13253/dns-over-https)") resp, err := c.httpClient.Do(req) if err != nil { log.Println(err) diff --git a/doh-client/ietf.go b/doh-client/ietf.go index 24e3efd..9fac35f 100644 --- a/doh-client/ietf.go +++ b/doh-client/ietf.go @@ -140,7 +140,7 @@ func (c *Client) handlerFuncIETF(w dns.ResponseWriter, r *dns.Msg, isTCP bool) { req.Header.Set("Content-Type", "application/dns-udpwireformat") } req.Header.Set("Accept", "application/dns-udpwireformat") - req.Header.Set("User-Agent", "DNS-over-HTTPS/1.0 (+https://github.com/m13253/dns-over-https)") + req.Header.Set("User-Agent", "DNS-over-HTTPS/1.1 (+https://github.com/m13253/dns-over-https)") resp, err := c.httpClient.Do(req) if err != nil { log.Println(err) diff --git a/doh-server/server.go b/doh-server/server.go index f814b8b..5b4542a 100644 --- a/doh-server/server.go +++ b/doh-server/server.go @@ -82,8 +82,8 @@ func (s *Server) Start() error { } func (s *Server) handlerFunc(w http.ResponseWriter, r *http.Request) { - w.Header().Set("Server", "DNS-over-HTTPS/1.0 (+https://github.com/m13253/dns-over-https)") - w.Header().Set("X-Powered-By", "DNS-over-HTTPS/1.0 (+https://github.com/m13253/dns-over-https)") + w.Header().Set("Server", "DNS-over-HTTPS/1.1 (+https://github.com/m13253/dns-over-https)") + w.Header().Set("X-Powered-By", "DNS-over-HTTPS/1.1 (+https://github.com/m13253/dns-over-https)") if r.Form == nil { const maxMemory = 32 << 20 // 32 MB