mirror of
https://github.com/perstarkse/minne.git
synced 2026-04-10 19:26:53 +02:00
feat: port selection
This commit is contained in:
@@ -56,8 +56,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
html_state,
|
||||
});
|
||||
|
||||
info!("Listening on 0.0.0.0:3000");
|
||||
let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await?;
|
||||
info!("Starting server listening on 0.0.0.0:{}", config.http_port);
|
||||
let serve_address = format!("0.0.0.0:{}", config.http_port);
|
||||
let listener = tokio::net::TcpListener::bind(serve_address).await?;
|
||||
axum::serve(listener, app).await?;
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user