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 <cdoern@redhat.com>
This commit is contained in:
Charlie Doern 2025-11-25 14:53:14 -05:00
parent b1c5b8fa9f
commit d58c9604b4

View file

@ -197,7 +197,7 @@ class StackRun(Subcommand):
config = StackRunConfig(**cast_image_name_to_string(replace_env_vars(config_contents))) config = StackRunConfig(**cast_image_name_to_string(replace_env_vars(config_contents)))
port = args.port or config.server.port 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 # Set the config file in environment so create_app can find it
os.environ["LLAMA_STACK_CONFIG"] = str(config_file) os.environ["LLAMA_STACK_CONFIG"] = str(config_file)