mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-23 07:04:26 +01:00
Parse torrc file to know virtual port of hidden services
This commit is contained in:
@@ -466,7 +466,17 @@ namespace BTCPayServer.Controllers
|
||||
Link = this.Url.Action(nameof(SSHService))
|
||||
});
|
||||
}
|
||||
result.TorServices = await _torServices.GetServices();
|
||||
foreach(var torService in await _torServices.GetServices())
|
||||
{
|
||||
if (torService.VirtualPort == 80)
|
||||
{
|
||||
result.OtherExternalServices.Add(new ServicesViewModel.OtherExternalService()
|
||||
{
|
||||
Name = torService.Name,
|
||||
Link = $"http://{torService.OnionHost}"
|
||||
});
|
||||
}
|
||||
}
|
||||
return View(result);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user