mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Implement Http Tor proxy as a internal http proxy
This commit is contained in:
14
BTCPayServer/Services/Socks5HttpClientHandler.cs
Normal file
14
BTCPayServer/Services/Socks5HttpClientHandler.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using BTCPayServer.HostedServices;
|
||||
|
||||
namespace BTCPayServer.Services
|
||||
{
|
||||
public class Socks5HttpClientHandler : HttpClientHandler
|
||||
{
|
||||
public Socks5HttpClientHandler(Socks5HttpProxyServer sock5)
|
||||
{
|
||||
this.Proxy = new WebProxy(sock5.Uri);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user