mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-22 16:34:26 +01:00
fix tor client creator
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user