diff --git a/crates/shadowsocks-service/src/local/mod.rs b/crates/shadowsocks-service/src/local/mod.rs index 8bc709e60fcb..98f38f1dc1d9 100644 --- a/crates/shadowsocks-service/src/local/mod.rs +++ b/crates/shadowsocks-service/src/local/mod.rs @@ -232,8 +232,8 @@ impl Server { balancer_builder.check_best_interval(intv); } - for server in &config.server { - balancer_builder.add_server(server.clone()); + for server in config.server { + balancer_builder.add_server(server); } balancer_builder.build().await?