mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Add "allow insecure" check
Check if "allow insecure" is set for ligthning node connection string before throwing error for http connection. fix #1880
This commit is contained in:
@@ -93,7 +93,7 @@ namespace BTCPayServer.Controllers
|
||||
|
||||
if (connectionString.BaseUri.Scheme == "http")
|
||||
{
|
||||
if (!isInternalNode)
|
||||
if (!isInternalNode && !connectionString.AllowInsecure)
|
||||
{
|
||||
ModelState.AddModelError(nameof(vm.ConnectionString), "The url must be HTTPS");
|
||||
return View(vm);
|
||||
|
||||
Reference in New Issue
Block a user