traefik/pkg/types/host_resolver.go
Ludovic Fernandez 8d7eccad5d New static configuration loading system.
Co-authored-by: Mathieu Lonjaret <mathieu.lonjaret@gmail.com>
2019-06-17 11:48:05 +02:00

16 lines
571 B
Go

package types
// HostResolverConfig contain configuration for CNAME Flattening.
type HostResolverConfig struct {
CnameFlattening bool `description:"A flag to enable/disable CNAME flattening" export:"true"`
ResolvConfig string `description:"resolv.conf used for DNS resolving" export:"true"`
ResolvDepth int `description:"The maximal depth of DNS recursive resolving" export:"true"`
}
// SetDefaults sets the default values.
func (h *HostResolverConfig) SetDefaults() {
h.CnameFlattening = false
h.ResolvConfig = "/etc/resolv.conf"
h.ResolvDepth = 5
}