From 91174e4a5c1a1e2fb972c950cb0ef8cc840c9790 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 20 Oct 2026 15:42:10 -0400 Subject: [PATCH] Fix getaddrinfo call in redirect calls --- confluent_server/confluent/httpapi.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/confluent_server/confluent/httpapi.py b/confluent_server/confluent/httpapi.py index 9ecb4395..4852e678 100644 --- a/confluent_server/confluent/httpapi.py +++ b/confluent_server/confluent/httpapi.py @@ -855,7 +855,9 @@ async def resourcehandler_backend(req, make_response): if default: try: loop = asyncio.get_running_loop() - ip_info = await loop.getaddrinfo(targip, 0, 0, socket.SOCK_STREAM) + ip_info = await loop.getaddrinfo( + targip, 0, family=socket.AF_UNSPEC, + type=socket.SOCK_STREAM) except socket.gaierror: rsp = await make_response('text/plain', 404) await rsp.write(b'hardwaremanagement.manager definition could not be resolved')