Documentation
¶
Overview ¶
Package middleware provides some customizable DNS request handling logic used in the proxy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// HostsFiles is the index containing the records of the hosts files. It
// must not be nil.
HostsFiles hostsfile.Storage
// Logger is the logger. It must not be nil.
Logger *slog.Logger
// MessageConstructor constructs DNS messages. It must not be nil.
MessageConstructor proxy.MessageConstructor
// HaltIPv6 halts the processing of AAAA requests and makes the handler
// reply with NODATA to them, if true.
HaltIPv6 bool
}
Config is the configuration for Default.
type Default ¶
type Default struct {
// contains filtered or unexported fields
}
Default implements proxy.Middleware with default DNS request handling logic.
Click to show internal directories.
Click to hide internal directories.