From 5843dedd24e447e15fb2b8bff87d1505f78243a4 Mon Sep 17 00:00:00 2001 From: Muaz Ahmad Date: Fri, 10 May 2024 20:37:25 +0500 Subject: [PATCH] Only use 1 address --- src/main.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.zig b/src/main.zig index 052c082..3ac5f71 100644 --- a/src/main.zig +++ b/src/main.zig @@ -6,6 +6,6 @@ const hosts = @import("hosts.zig"); pub fn main() !void { try util.check_perms(); const domain, const ip_ver = try util.get_input(); - const ips = try mdns.get_mdns(domain); - try hosts.update_hosts(ips, ip_ver); + const ips = try mdns.get_mdns(domain, ip_ver); + try hosts.update_hosts(ips); }