+ DNS: Allow DOH queries via unencrypted HTTP (e.g. for reverse proxying)

This commit is contained in:
Krombel
2019-12-13 13:59:36 +01:00
committed by Simon Zolin
parent 041ea65d14
commit ec8fe0b40c
2 changed files with 4 additions and 1 deletions

View File

@@ -144,7 +144,7 @@ func handleGetProfile(w http.ResponseWriter, r *http.Request) {
// DNS-over-HTTPS
// --------------
func handleDOH(w http.ResponseWriter, r *http.Request) {
if r.TLS == nil {
if !config.TLS.AllowUnencryptedDOH && r.TLS == nil {
httpError(w, http.StatusNotFound, "Not Found")
return
}