support IPv6 (fate #316261)