mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
290a38e424
This fixes an issue with parsing address types from strings.
24 lines
565 B
Go
24 lines
565 B
Go
package schema
|
|
|
|
import (
|
|
"net"
|
|
)
|
|
|
|
// TelemetryConfig represents the telemetry config.
|
|
type TelemetryConfig struct {
|
|
Metrics TelemetryMetricsConfig `koanf:"metrics"`
|
|
}
|
|
|
|
// TelemetryMetricsConfig represents the telemetry metrics config.
|
|
type TelemetryMetricsConfig struct {
|
|
Enabled bool `koanf:"enabled"`
|
|
Address *Address `koanf:"address"`
|
|
}
|
|
|
|
// DefaultTelemetryConfig is the default telemetry configuration.
|
|
var DefaultTelemetryConfig = TelemetryConfig{
|
|
Metrics: TelemetryMetricsConfig{
|
|
Address: &Address{true, "tcp", net.ParseIP("0.0.0.0"), 9959},
|
|
},
|
|
}
|