mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 01:48:05 +00:00
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:
parent
b1c5b8fa9f
commit
d58c9604b4
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue