Fixed fluentd.ParseAddr return nil values on error
This commit is contained in:
parent
f7b37a7666
commit
457142d8ad
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user