From db766252926b0919e8af9d7a764254406773625e Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 2 Aug 2024 16:48:57 -0400 Subject: [PATCH] host: fix duplicate strings. Fixes #396 and theoretically the same bug but for AAAA records, though in practice `toybox host www.google.com` isn't showing me AAAA records like `host www.google.com` does. --- toys/net/host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toys/net/host.c b/toys/net/host.c index 4082a8f3..1d06159f 100644 --- a/toys/net/host.c +++ b/toys/net/host.c @@ -40,7 +40,7 @@ static const struct rrt { { "CNAME", "is a nickname for", 5 }, { "SOA", "start of authority", 6 }, { "PTR", "domain name pointer", 12 }, { "HINFO", "host information", 13 }, { "MX", "mail is handled", 15 }, { "TXT", "descriptive text", 16 }, - { "AAAA", "has address", 28 }, { "SRV", "mail is handled", 33 } + { "AAAA", "has IPv6 address", 28 }, { "SRV", "has SRV record", 33 } }; int xdn_expand(char *packet, char *endpkt, char *comp, char *expand, int elen) -- 2.39.2