Modify HTTP status codes to affect the error

This commit is contained in:
Star Brilliant
2017-11-30 16:14:05 +08:00
parent c4412e2993
commit f49b5a3a0b
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -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