mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-06-04 21:11:17 +00:00
Modify HTTP status codes to affect the error
This commit is contained in:
@@ -194,7 +194,7 @@ func (c *Client) handlerFunc(w dns.ResponseWriter, r *dns.Msg, isTCP bool) {
|
||||
return
|
||||
}
|
||||
if resp.StatusCode != 200 {
|
||||
log.Printf("Server returned error: %s\n", resp.Status)
|
||||
log.Printf("HTTP error: %s\n", resp.Status)
|
||||
reply.Rcode = dns.RcodeServerFailure
|
||||
w.WriteMsg(reply)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user