From d971bb9957a6ec28a61cfbfc5fa5111fec71efa6 Mon Sep 17 00:00:00 2001 From: Simon Zolin Date: Fri, 29 May 2020 11:15:31 +0300 Subject: [PATCH] * minor --- dnsforward/dnsforward_http.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dnsforward/dnsforward_http.go b/dnsforward/dnsforward_http.go index c2c94061..5f916a3f 100644 --- a/dnsforward/dnsforward_http.go +++ b/dnsforward/dnsforward_http.go @@ -385,6 +385,11 @@ func checkDNS(input string, bootstrap []string) error { return nil } +// Control flow: +// web +// -> dnsforward.handleDOH -> dnsforward.ServeHTTP +// -> proxy.ServeHTTP -> proxy.handleDNSRequest +// -> dnsforward.handleDNSRequest func (s *Server) handleDOH(w http.ResponseWriter, r *http.Request) { if !s.conf.TLSAllowUnencryptedDOH && r.TLS == nil { httpError(r, w, http.StatusNotFound, "Not Found")