WebProxy uses socks5 instead of http

This commit is contained in:
2dust
2024-12-06 14:01:11 +08:00
parent 5d55a55754
commit fbd4557b44
5 changed files with 15 additions and 15 deletions

View File

@@ -10,7 +10,7 @@ namespace ServiceLib.Common
{
private static readonly Lazy<HttpClientHelper> _instance = new(() =>
{
HttpClientHandler handler = new() { UseCookies = false };
SocketsHttpHandler handler = new() { UseCookies = false };
HttpClientHelper helper = new(new HttpClient(handler));
return helper;
});