Fixed fluentd.ParseAddr return nil values on error

This commit is contained in:
Piotr Biernat 2023-04-02 19:33:24 +02:00
parent f7b37a7666
commit 457142d8ad

View File

@ -10,7 +10,7 @@ func ParseAddr(addr string) (string, int, error) {
fHost := p[0] fHost := p[0]
fPort, err := strconv.Atoi(p[1]) fPort, err := strconv.Atoi(p[1])
if err != nil { if err != nil {
return nil, nil, err return "", 0, err
} }
return fHost, fPort, nil return fHost, fPort, nil