修改了服务只监听本地端口
This commit is contained in:
@@ -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客户端
|
||||||
|
|||||||
Reference in New Issue
Block a user