Fix both ips not getting ipv6
This commit is contained in:
parent
b1bdd346b3
commit
6e89c63eca
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
var sock = try send_query(domain, ip_info4);
|
||||||
const addr_v4 = try receive_response(sock, 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);
|
sock = try send_query(domain, ip_info6);
|
||||||
const addr_v6 = try receive_response(sock, ip_info6);
|
const addr_v6 = try receive_response(sock, ip_info6);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue