-
Notifications
You must be signed in to change notification settings - Fork 24
Changed the server's host from localhost to 0.0.0.0
#206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
5b6a146
9e32d74
f517552
98a8484
9a32048
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -332,12 +332,12 @@ async def anonymous_claims(request, handler): | |
| print(f"🏢 {self.agent_class.__name__}") | ||
| print("=" * 80) | ||
| print(f"🔒 Auth: {'Enabled' if auth_configuration else 'Anonymous'}") | ||
| print(f"🚀 Server: localhost:{port}") | ||
| print(f"🚀 Server: Listening on 0.0.0.0:{port} (all interfaces)") | ||
| print(f"📚 Endpoint: http://localhost:{port}/api/messages") | ||
| print(f"❤️ Health: http://localhost:{port}/api/health\n") | ||
|
|
||
| try: | ||
| run_app(app, host="localhost", port=port, handle_signals=True) | ||
| run_app(app, host="0.0.0.0", port=port, handle_signals=True) | ||
|
||
| except KeyboardInterrupt: | ||
| print("\n👋 Server stopped") | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The log messages on lines 336-337 still reference "http://localhost:{port}" for the endpoint and health URLs, which is inconsistent with the server now listening on 0.0.0.0. When the server binds to 0.0.0.0, clients should connect using the actual hostname or IP address, not localhost. Consider updating these messages to reflect the actual accessible URLs, or if following the conditional binding pattern suggested above, display the appropriate URL based on whether the server is running in production or local development mode.