This commit is contained in:
klzgrad 2024-07-22 02:56:10 +08:00
parent a3a475eefb
commit e8094ced17

View File

@ -160,6 +160,8 @@ std::optional<PaddingType> NaiveProxyDelegate::GetProxyChainPaddingType(
// protocols. // protocols.
if (proxy_chain.is_direct()) if (proxy_chain.is_direct())
return PaddingType::kNone; return PaddingType::kNone;
if (proxy_chain.Last().is_socks())
return PaddingType::kNone;
return padding_type_by_server_[proxy_chain.Last()]; return padding_type_by_server_[proxy_chain.Last()];
} }