mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-19 15:04:19 +01:00
Fix warning
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 = Uri.TryCreate(entity.ServerUrl, UriKind.Absolute, out var u) && u.DnsSafeHost.EndsWith(".onion");
|
paymentMethod.PreferOnion = Uri.TryCreate(entity.ServerUrl, UriKind.Absolute, out var u) && u.DnsSafeHost.EndsWith(".onion", StringComparison.OrdinalIgnoreCase);
|
||||||
|
|
||||||
using (logs.Measure($"{logPrefix} Payment method details creation"))
|
using (logs.Measure($"{logPrefix} Payment method details creation"))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user