Only use 1 address

This commit is contained in:
Muaz Ahmad 2024-05-10 20:37:25 +05:00
parent b147257993
commit 5843dedd24

View file

@ -6,6 +6,6 @@ const hosts = @import("hosts.zig");
pub fn main() !void { pub fn main() !void {
try util.check_perms(); try util.check_perms();
const domain, const ip_ver = try util.get_input(); const domain, const ip_ver = try util.get_input();
const ips = try mdns.get_mdns(domain); const ips = try mdns.get_mdns(domain, ip_ver);
try hosts.update_hosts(ips, ip_ver); try hosts.update_hosts(ips);
} }