ServeDNS implements the [Handler] interface for DefaultHandler.
(ctx context.Context, p *Proxy, proxyCtx *DNSContext)
| 25 | |
| 26 | // ServeDNS implements the [Handler] interface for DefaultHandler. |
| 27 | func (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) |