mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-04-10 03:13:34 +03:00
* minor
This commit is contained in:
parent
0904eeffa8
commit
d971bb9957
1 changed files with 5 additions and 0 deletions
|
@ -385,6 +385,11 @@ func checkDNS(input string, bootstrap []string) error {
|
||||||
return nil
|
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) {
|
func (s *Server) handleDOH(w http.ResponseWriter, r *http.Request) {
|
||||||
if !s.conf.TLSAllowUnencryptedDOH && r.TLS == nil {
|
if !s.conf.TLSAllowUnencryptedDOH && r.TLS == nil {
|
||||||
httpError(r, w, http.StatusNotFound, "Not Found")
|
httpError(r, w, http.StatusNotFound, "Not Found")
|
||||||
|
|
Loading…
Add table
Reference in a new issue