diff --git a/src/mdns.zig b/src/mdns.zig index ad32528..61a1e1d 100644 --- a/src/mdns.zig +++ b/src/mdns.zig @@ -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);