Skip to content

Commit

Permalink
Return any errors when creating tls config (influxdata#5541)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson authored and Mathieu Lecarme committed Apr 17, 2020
1 parent dd5f03e commit 7501e44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/socket_listener/socket_listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7501e44

Please sign in to comment.