From d58c9604b448f79da276ca689aca93eb5bb04a2a Mon Sep 17 00:00:00 2001 From: Charlie Doern Date: Tue, 25 Nov 2025 14:53:14 -0500 Subject: [PATCH] fix: bind to proper default hosts we used to have ` host = config.server.host or ["::", "0.0.0.0"]` but now only bind to ` host = config.server.host or "0.0.0.0"` this allows us to curl http://localhost:8321/v1/models on fedora, which defaults to using IPv6. revert back to the old logic resolves #4210 Signed-off-by: Charlie Doern --- src/llama_stack/cli/stack/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llama_stack/cli/stack/run.py b/src/llama_stack/cli/stack/run.py index 73d8d13d5..bc4ef70fd 100644 --- a/src/llama_stack/cli/stack/run.py +++ b/src/llama_stack/cli/stack/run.py @@ -197,7 +197,7 @@ class StackRun(Subcommand): config = StackRunConfig(**cast_image_name_to_string(replace_env_vars(config_contents))) port = args.port or config.server.port - host = config.server.host or "0.0.0.0" + host = config.server.host or ["::", "0.0.0.0"] # Set the config file in environment so create_app can find it os.environ["LLAMA_STACK_CONFIG"] = str(config_file)