Default implements [proxy.Middleware] with default DNS request handling logic.
| 30 | // Default implements [proxy.Middleware] with default DNS request handling |
| 31 | // logic. |
| 32 | type Default struct { |
| 33 | hosts hostsfile.Storage |
| 34 | logger *slog.Logger |
| 35 | messages messageConstructor |
| 36 | haltIPv6 bool |
| 37 | } |
| 38 | |
| 39 | // New creates a new [*Default]. |
| 40 | func New(conf *Config) (mw *Default) { |
nothing calls this directly
no outgoing calls
no test coverage detected