default connection port to 27520

This commit is contained in:
2026-09-03 01:19:08 +08:00
parent 9607a66cf3
commit 2e37cadb36
7 changed files with 44 additions and 14 deletions
+3 -1
View File
@@ -1,10 +1,12 @@
use axum::{Router, http::StatusCode, routing::get};
use friendolls_common::DEFAULT_SERVER_PORT;
mod network;
#[tokio::main]
async fn main() -> std::io::Result<()> {
let bind_addr = std::env::var("BIND_ADDR").unwrap_or_else(|_| "127.0.0.1:3000".to_string());
let bind_addr =
std::env::var("BIND_ADDR").unwrap_or_else(|_| format!("127.0.0.1:{DEFAULT_SERVER_PORT}"));
let listener = tokio::net::TcpListener::bind(&bind_addr).await?;
let app = Router::new()
.route("/", get("ok"))