From e8094ced17d28398edf44f61f1b9b40743f68418 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Mon, 22 Jul 2024 02:56:10 +0800 Subject: [PATCH] fix --- src/net/tools/naive/naive_proxy_delegate.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/net/tools/naive/naive_proxy_delegate.cc b/src/net/tools/naive/naive_proxy_delegate.cc index 3c246d06f2..c52ed7b4cc 100644 --- a/src/net/tools/naive/naive_proxy_delegate.cc +++ b/src/net/tools/naive/naive_proxy_delegate.cc @@ -160,6 +160,8 @@ std::optional NaiveProxyDelegate::GetProxyChainPaddingType( // protocols. if (proxy_chain.is_direct()) return PaddingType::kNone; + if (proxy_chain.Last().is_socks()) + return PaddingType::kNone; return padding_type_by_server_[proxy_chain.Last()]; }