diff --git a/agent/config/builder.go b/agent/config/builder.go index 339b152137..81c6e245f9 100644 --- a/agent/config/builder.go +++ b/agent/config/builder.go @@ -1987,8 +1987,10 @@ func (b *builder) cidrsVal(name string, v []string) (nets []*net.IPNet) { } func (b *builder) tlsVersion(name string, v *string) types.TLSVersion { + // TODO: should the nil check be moved into ParseTLSVersion and the arguments + // switched to take a pointer? if v == nil { - return nil + return types.TLSVersionAuto } a, err := tlsutil.ParseTLSVersion(*v)