Remove tor client factory

This commit is contained in:
Kukks
2020-03-17 07:53:20 +01:00
parent 1a62ee9260
commit e4cb1a875b
5 changed files with 2 additions and 59 deletions

View File

@@ -164,15 +164,7 @@ namespace BTCPayServer.Controllers
if (TempData.TryGetValue( "bpu", out var bpu) && !string.IsNullOrEmpty(bpu?.ToString()) && Uri.TryCreate(bpu.ToString(), UriKind.Absolute, out var endpoint))
{
TempData.Remove("bpu");
var httpClient = _socks5HttpClientFactory.CreateClient("payjoin");
if (endpoint.IsOnion() && httpClient == null)
{
return null;
}
else
{
httpClient = _httpClientFactory.CreateClient("payjoin");
}
var httpClient = _httpClientFactory.CreateClient("payjoin");
var cloned = psbt.Clone();