MCPcopy
hub / github.com/AdguardTeam/dnsproxy / ServeDNS

Method ServeDNS

proxy/requesthandler.go:27–29  ·  view source on GitHub ↗

ServeDNS implements the [Handler] interface for DefaultHandler.

(ctx context.Context, p *Proxy, proxyCtx *DNSContext)

Source from the content-addressed store, hash-verified

25
26// ServeDNS implements the [Handler] interface for DefaultHandler.
27func (DefaultHandler) ServeDNS(ctx context.Context, p *Proxy, proxyCtx *DNSContext) (err error) {
28 return p.Resolve(ctx, proxyCtx)
29}
30
31// The HandlerFunc type is an adapter to allow the use of ordinary functions as
32// [Handler]. If f is a function with the appropriate signature, HandlerFunc(f)

Callers

nothing calls this directly

Calls 1

ResolveMethod · 0.80

Tested by

no test coverage detected