mirror of
https://github.com/Icinga/icingadb.git
synced 2026-06-08 16:34:29 -04:00
Rename TLS.Tls to TLS.Enable
Enable is more self-documenting.
This commit is contained in:
parent
c928b21dab
commit
59cf6ccc41
1 changed files with 2 additions and 2 deletions
|
|
@ -83,7 +83,7 @@ func ParseFlags() (*Flags, error) {
|
|||
|
||||
// TLS provides TLS configuration options for Redis and Database.
|
||||
type TLS struct {
|
||||
Tls bool `yaml:"tls"`
|
||||
Enable bool `yaml:"tls"`
|
||||
Cert string `yaml:"cert"`
|
||||
Key string `yaml:"key"`
|
||||
Ca string `yaml:"ca"`
|
||||
|
|
@ -92,7 +92,7 @@ type TLS struct {
|
|||
|
||||
// MakeConfig assembles a tls.Config from t and address.
|
||||
func (t *TLS) MakeConfig(address string) (*tls.Config, error) {
|
||||
if !t.Tls {
|
||||
if !t.Enable {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue