From 9c77113322285970e540964b595ea862fe0e4802 Mon Sep 17 00:00:00 2001 From: arloor Date: Thu, 5 Sep 2024 00:16:39 +0800 Subject: [PATCH] chore: Refactor code in local/utils.rs for better readability and maintainability --- crates/shadowsocks-service/src/local/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/shadowsocks-service/src/local/utils.rs b/crates/shadowsocks-service/src/local/utils.rs index cf7555b4f6a1..6600f03e9268 100644 --- a/crates/shadowsocks-service/src/local/utils.rs +++ b/crates/shadowsocks-service/src/local/utils.rs @@ -67,7 +67,7 @@ where } } #[cfg(feature = "https-tunnel")] - let result = tcprelay::utils::copy_bidirectional(shadow, plain).await; + let result = copy_bidirectional(shadow, plain).await; #[cfg(not(feature = "https-tunnel"))] let result = tcprelay::utils::copy_encrypted_bidirectional(svr_cfg.method(), shadow, plain).await; match result {