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:
Umar Bolatov
2020-09-06 15:20:19 -07:00
parent a249a164f7
commit e70753df5e

View File

@@ -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);