修改了服务只监听本地端口

This commit is contained in:
2025-10-21 10:07:32 +08:00
parent 9e76976a56
commit f7450bce7f

View File

@@ -656,7 +656,7 @@ async fn main() -> std::io::Result<()> {
// 使用&ports创建引用迭代器而不是获取所有权 // 使用&ports创建引用迭代器而不是获取所有权
for port in &ports { for port in &ports {
let addr = format!("0.0.0.0:{}", port); let addr = format!("127.0.0.1:{}", port);
info!("Trying to bind to {}", addr); info!("Trying to bind to {}", addr);
// 为每个服务器创建克隆的连接池和HTTP客户端 // 为每个服务器创建克隆的连接池和HTTP客户端