MCPcopy Create free account
hub / github.com/celzero/midway / responseWithCode

Function responseWithCode

midway/dns.go:67–71  ·  view source on GitHub ↗
(q *dns.Msg, rcode int)

Source from the content-addressed store, hash-verified

65}
66
67func responseWithCode(q *dns.Msg, rcode int) *dns.Msg {
68 a := new(dns.Msg)
69 a.SetRcode(q, rcode)
70 return a
71}
72
73func (s *dohstub) DohHandler() http.HandlerFunc {
74 // ref: github.com/folbricht/routedns/blob/5932594/dohlistener.go#L153

Callers 2

servfailMethod · 0.85
refusedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected