pub fn parseIp6(text: []const u8, port: u16) Ip6Address.ParseError!IpAddress text: []const u8port: u16121
122
123 pub fn parseIp6(text: []const u8, port: u16) Ip6Address.ParseError!IpAddress {
return .{ .ip6 = try Ip6Address.parse(text, port) };
}
This is a pure function but it cannot handle IPv6 addresses that have scope ids ("%foo" at the end). To also handle those,
resolveIp6must be called instead.