fix tor client creator

This commit is contained in:
Kukks
2020-03-13 15:10:26 +01:00
parent 2e3a0706ee
commit f1821636db
3 changed files with 47 additions and 16 deletions

View File

@@ -163,13 +163,13 @@ namespace BTCPayServer.Controllers
{
TempData.Remove("bpu");
HttpClient httpClient;
if (endpoint.IsOnion() && _socketFactory.SocksClient!= null)
if (endpoint.IsOnion() )
{
if ( _socketFactory.SocksClient == null)
httpClient = await _socketFactory.SocksClient;
if (httpClient == null)
{
return null;
}
httpClient = _socketFactory.SocksClient;
}
else
{