From c3e793bb4edba0130fa9ae5c15a86cd6e06e065f Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Wed, 6 Mar 2019 17:37:44 -0800 Subject: [PATCH] Return any errors when creating tls config (#5541) --- plugins/inputs/socket_listener/socket_listener.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inputs/socket_listener/socket_listener.go b/plugins/inputs/socket_listener/socket_listener.go index 391427da9..ed007a00a 100644 --- a/plugins/inputs/socket_listener/socket_listener.go +++ b/plugins/inputs/socket_listener/socket_listener.go @@ -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 {