From ae2e10d5ddd822fb4c0a3817dd2481908be8db57 Mon Sep 17 00:00:00 2001 From: Marko Rauhamaa Date: Tue, 24 Mar 2026 19:47:00 +0200 Subject: [PATCH] Fix typo in fsadns JSON field The JSON field name for socket type in DNS resolution is misspelled in `construct_addrinfo` but the parser in `deconstruct_addrinfo` reads `"socktype"`. Result: `ai_socktype` is silently zero in all DNS results. Co-Authored-By: Claude (from Anthropic) --- src/fsadns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fsadns.c b/src/fsadns.c index 6eab5d0..cdf42f5 100644 --- a/src/fsadns.c +++ b/src/fsadns.c @@ -86,7 +86,7 @@ static json_thing_t *construct_addrinfo(const struct addrinfo *ap) json_thing_t *info = json_make_object(); json_add_to_object(info, "flags", json_make_integer(ap->ai_flags)); json_add_to_object(info, "family", json_make_integer(ap->ai_family)); - json_add_to_object(info, "socketype", json_make_integer(ap->ai_socktype)); + json_add_to_object(info, "socktype", json_make_integer(ap->ai_socktype)); json_add_to_object(info, "protocol", json_make_integer(ap->ai_protocol)); if (ap->ai_addr) { char *base64_encoded =