change for server

This commit is contained in:
2025-09-08 09:45:11 +08:00
parent 3606b71466
commit b289e6414e
2 changed files with 2 additions and 2 deletions

2
.env
View File

@@ -1,2 +1,2 @@
# .env
DATABASE_URL=postgres://milkydata:44n6FdB8CdDAk5rk@154.37.213.24:5432/milkydata
DATABASE_URL=postgres://milkydata:44n6FdB8CdDAk5rk@127.0.0.1:5432/milkydata

View File

@@ -62,7 +62,7 @@ async fn main() -> std::io::Result<()> {
let mut server = None;
for port in ports {
let addr = format!("127.0.0.1:{}", port);
let addr = format!("0.0.0.0:{}", port);
println!("Trying to bind to {}", addr);
// 为每个服务器创建克隆的连接池