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:
Lucas Oliveira 2025-06-03 10:01:30 -03:00 committed by GitHub
commit fe423d9e59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}"