fix: changed host to be localhost on exhibition if host is 0.0.0.0 (#8335)
changed host to be localhost on exhibition if host is 0.0.0.0
This commit is contained in:
parent
bdc7587930
commit
fe423d9e59
1 changed files with 2 additions and 1 deletions
|
|
@ -415,7 +415,8 @@ def print_banner(host: str, port: int, protocol: str) -> None:
|
|||
"To contribute, set: [bold]DO_NOT_TRACK=false[/bold] in your environment."
|
||||
)
|
||||
)
|
||||
access_link = f"[bold]🟢 Open Langflow →[/bold] [link={protocol}://{host}:{port}]{protocol}://{host}:{port}[/link]"
|
||||
access_host = host if host != "0.0.0.0" else "localhost"
|
||||
access_link = f"[bold]🟢 Open Langflow →[/bold] [link={protocol}://{access_host}:{port}]{protocol}://{access_host}:{port}[/link]"
|
||||
|
||||
message = f"{title}\n{info_text}\n\n{telemetry_text}\n\n{access_link}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue