Return any errors when creating tls config (#5541)
This commit is contained in:
parent
dd67144660
commit
c3e793bb4e
|
@ -261,7 +261,7 @@ func (sl *SocketListener) Start(acc telegraf.Accumulator) error {
|
|||
|
||||
tlsCfg, err := sl.ServerConfig.TLSConfig()
|
||||
if err != nil {
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
|
||||
if tlsCfg == nil {
|
||||
|
|
Loading…
Reference in New Issue