From 29216e96bd6b0d3b88d47f23bf0972db6ceabd06 Mon Sep 17 00:00:00 2001 From: GeorgeR Date: Sat, 27 Dec 2025 06:53:17 +1100 Subject: [PATCH] Fix for peername tuple size variability in get_client_ip (#2427) ipv6 compatibility patch. --- comfyui_manager/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/comfyui_manager/__init__.py b/comfyui_manager/__init__.py index d2253ce6..67480c3d 100644 --- a/comfyui_manager/__init__.py +++ b/comfyui_manager/__init__.py @@ -55,9 +55,10 @@ def should_be_disabled(fullpath:str) -> bool: def get_client_ip(request): peername = request.transport.get_extra_info("peername") if peername is not None: - host, port = peername + # Grab the first two values - there can be more, ie. with --listen + host, port = peername[:2] return host - + return "unknown"