From 457142d8add2d7218c50dfc529b94ae45d153371 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Sun, 2 Apr 2023 19:33:24 +0200 Subject: [PATCH] Fixed fluentd.ParseAddr return nil values on error --- fluentd/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fluentd/config.go b/fluentd/config.go index c463f47..39637cb 100644 --- a/fluentd/config.go +++ b/fluentd/config.go @@ -10,7 +10,7 @@ func ParseAddr(addr string) (string, int, error) { fHost := p[0] fPort, err := strconv.Atoi(p[1]) if err != nil { - return nil, nil, err + return "", 0, err } return fHost, fPort, nil