From 6e89c63eca455338190e6bc9bf44c0317e745a46 Mon Sep 17 00:00:00 2001 From: Muaz Ahmad Date: Mon, 13 May 2024 16:03:14 +0500 Subject: [PATCH] Fix both ips not getting ipv6 --- src/mdns.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);