Fix both ips not getting ipv6

This commit is contained in:
Muaz Ahmad 2024-05-13 16:03:14 +05:00
parent b1bdd346b3
commit 6e89c63eca

View file

@ -22,7 +22,7 @@ pub fn get_mdns(domain: util.Domain, ip_info: util.IPInfo) !util.IP {
var sock = try send_query(domain, ip_info4);
const addr_v4 = try receive_response(sock, ip_info4);
const ip_info6 = util.IPInfo{ .version = .IPv4, .interface = ip_info.interface };
const ip_info6 = util.IPInfo{ .version = .IPv6, .interface = ip_info.interface };
sock = try send_query(domain, ip_info6);
const addr_v6 = try receive_response(sock, ip_info6);