Show other tor services

This commit is contained in:
nicolas.dorier
2019-03-18 16:45:46 +09:00
parent 014d08f38a
commit c2754b324d
3 changed files with 45 additions and 5 deletions

View File

@@ -470,12 +470,20 @@ namespace BTCPayServer.Controllers
{
if (torService.VirtualPort == 80)
{
result.TorServices.Add(new ServicesViewModel.OtherExternalService()
result.TorHttpServices.Add(new ServicesViewModel.OtherExternalService()
{
Name = torService.Name,
Link = $"http://{torService.OnionHost}"
});
}
else
{
result.OtherExternalServices.Add(new ServicesViewModel.OtherExternalService()
{
Name = torService.Name,
Link = $"{torService.OnionHost}:{torService.VirtualPort}"
});
}
}
return View(result);
}