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

Struct Default

internal/middleware/middleware.go:32–37  ·  view source on GitHub ↗

Default implements [proxy.Middleware] with default DNS request handling logic.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected