We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f3cba8 commit 9c13e80Copy full SHA for 9c13e80
rust/usuba/src/bin/usuba.rs
@@ -14,7 +14,8 @@ pub async fn main() -> Result<(), UsubaError> {
14
.finish();
15
tracing::subscriber::set_global_default(subscriber.with(Layer::default().pretty()))?;
16
17
- let socket_address: SocketAddr = "127.0.0.1:8080".parse()?;
+ let port = std::option_env!("PORT").unwrap_or("8080");
18
+ let socket_address: SocketAddr = format!("0.0.0.0:{port}").parse()?;
19
let listener = tokio::net::TcpListener::bind(socket_address).await?;
20
21
info!("Server listening on {}", socket_address);
0 commit comments