mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Fix invoice page not showing tor link (Fix https://github.com/btcpayserver/btcpayserver/issues/915)
This commit is contained in:
@@ -257,7 +257,7 @@ namespace BTCPayServer.Controllers
|
|||||||
paymentMethod.Network = network;
|
paymentMethod.Network = network;
|
||||||
paymentMethod.SetId(supportedPaymentMethod.PaymentId);
|
paymentMethod.SetId(supportedPaymentMethod.PaymentId);
|
||||||
paymentMethod.Rate = rate.BidAsk.Bid;
|
paymentMethod.Rate = rate.BidAsk.Bid;
|
||||||
paymentMethod.PreferOnion = this.Request.IsOnion();
|
paymentMethod.PreferOnion = Uri.TryCreate(entity.ServerUrl, UriKind.Absolute, out var u) && u.DnsSafeHost.EndsWith(".onion");
|
||||||
|
|
||||||
using (logs.Measure($"{logPrefix} Payment method details creation"))
|
using (logs.Measure($"{logPrefix} Payment method details creation"))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user