Remove unused imports in outbound_proxy (#2111)

* Remove unused imports in outbound_proxy

* Upgrade rustls-webpki to a version without advisories

* Upgrade rand to a version without advisories
This commit is contained in:
Linus Färnstrand
2026-04-19 22:34:55 +08:00
committed by GitHub
parent f8b9f63a44
commit d37fd371d1
2 changed files with 10 additions and 17 deletions
Generated
+8 -8
View File
@@ -378,7 +378,7 @@ dependencies = [
"hex",
"indexmap",
"js-sys",
"rand 0.9.2",
"rand 0.9.4",
"serde",
"serde_bytes",
"simdutf8",
@@ -1389,7 +1389,7 @@ dependencies = [
"once_cell",
"pin-project-lite",
"quinn",
"rand 0.9.2",
"rand 0.9.4",
"ring",
"rustls",
"serde",
@@ -1416,7 +1416,7 @@ dependencies = [
"once_cell",
"parking_lot",
"quinn",
"rand 0.9.2",
"rand 0.9.4",
"resolv-conf",
"rustls",
"serde",
@@ -2045,7 +2045,7 @@ dependencies = [
"log-mdc",
"mock_instant",
"parking_lot",
"rand 0.9.2",
"rand 0.9.4",
"serde",
"serde-value",
"serde_json",
@@ -2597,7 +2597,7 @@ dependencies = [
"bytes",
"getrandom 0.3.4",
"lru-slab",
"rand 0.9.2",
"rand 0.9.4",
"ring",
"rustc-hash",
"rustls",
@@ -2646,9 +2646,9 @@ checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09"
[[package]]
name = "rand"
version = "0.9.2"
version = "0.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1"
checksum = "44c5af06bb1b7d3216d91932aed5265164bf384dc89cd6ba05cf59a35f5f76ea"
dependencies = [
"rand_chacha",
"rand_core 0.9.3",
@@ -3235,7 +3235,7 @@ dependencies = [
"ghash",
"hkdf",
"md-5",
"rand 0.9.2",
"rand 0.9.4",
"ring-compat",
"sha1",
"sm4",
@@ -11,20 +11,13 @@ use std::{
task::{self, Poll},
};
use shadowsocks::{
net::ConnectOpts,
relay::socks5::{Address, Command},
};
use shadowsocks::{net::ConnectOpts, relay::socks5::Address};
use tokio::io::{AsyncRead, AsyncWrite, ReadBuf};
use crate::{
config::{OutboundProxy, OutboundProxyProtocol},
local::context::ServiceContext,
net::{
http_stream::ProxyHttpStream,
outbound_proxy::connect_via_proxy,
socks5_client::{socks5_command, socks5_handshake},
},
net::{http_stream::ProxyHttpStream, outbound_proxy::connect_via_proxy},
};
use super::auto_proxy_stream::AutoProxyClientStream;