Just use static 5800 port

This commit is contained in:
2024-12-21 21:40:03 -06:00
parent 1d0bdcd08d
commit da71ab473a
2 changed files with 3 additions and 4 deletions

View File

@@ -7,8 +7,8 @@ async fn hello() -> &'static str {
#[tokio::main]
async fn main() {
let port = std::env::var("PORT").unwrap_or_else(|_| "5800".to_string());
let addr = format!("127.0.0.1:{}", port);
// let port = std::env::var("PORT").unwrap_or_else(|_| "5800".to_string());
let addr = format!("0.0.0.0:{}", "5800");
tracing_subscriber::fmt().init();
let router = Router::new().get(hello);