Implement Http Tor proxy as a internal http proxy

This commit is contained in:
nicolas.dorier
2020-04-09 17:38:55 +09:00
parent e183714475
commit 6927d81175
8 changed files with 417 additions and 455 deletions

View 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);
}
}
}