From 143e9b6f9cab22f93eac024eacfd9ac55fb85a46 Mon Sep 17 00:00:00 2001 From: Julien Salleyron Date: Mon, 13 Jul 2020 12:06:03 +0200 Subject: [PATCH] Fix default value for InsecureSNI when global is not set --- cmd/configuration.go | 1 + pkg/config/static/static_config.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/configuration.go b/cmd/configuration.go index 31e730e12..ed5442a43 100644 --- a/cmd/configuration.go +++ b/cmd/configuration.go @@ -20,6 +20,7 @@ func NewTraefikConfiguration() *TraefikCmdConfiguration { Configuration: static.Configuration{ Global: &static.Global{ CheckNewVersion: true, + InsecureSNI: true, }, EntryPoints: make(static.EntryPoints), Providers: &static.Providers{ diff --git a/pkg/config/static/static_config.go b/pkg/config/static/static_config.go index 55ce063cd..f64b3b8b5 100644 --- a/pkg/config/static/static_config.go +++ b/pkg/config/static/static_config.go @@ -79,7 +79,7 @@ type CertificateResolver struct { type Global struct { CheckNewVersion bool `description:"Periodically check if a new version has been released." json:"checkNewVersion,omitempty" toml:"checkNewVersion,omitempty" yaml:"checkNewVersion,omitempty" label:"allowEmpty" export:"true"` SendAnonymousUsage bool `description:"Periodically send anonymous usage statistics. If the option is not specified, it will be enabled by default." json:"sendAnonymousUsage,omitempty" toml:"sendAnonymousUsage,omitempty" yaml:"sendAnonymousUsage,omitempty" label:"allowEmpty" export:"true"` - InsecureSNI bool `description:"Allow domain fronting. If the option is not specified, it will be enabled by default." json:"insecureSNI,omitempty" toml:"insecureSNI,omitempty" yaml:"insecureSNI,omitempty" label:"allowEmpty" export:"true"` + InsecureSNI bool `description:"Allow domain fronting. If the option is not specified, it will be enabled by default." json:"insecureSNI" toml:"insecureSNI" yaml:"insecureSNI" label:"allowEmpty" export:"true"` } // SetDefaults sets the default values.