Fix issue 1291 - redis output to ipv6 host is not parsed properly