From e70753df5e3dfb8d1c30be9800c142972bb8fb21 Mon Sep 17 00:00:00 2001 From: Umar Bolatov Date: Sun, 6 Sep 2020 15:20:19 -0700 Subject: [PATCH] Add "allow insecure" check Check if "allow insecure" is set for ligthning node connection string before throwing error for http connection. fix #1880 --- BTCPayServer/Controllers/StoresController.LightningLike.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer/Controllers/StoresController.LightningLike.cs b/BTCPayServer/Controllers/StoresController.LightningLike.cs index 0abf1cc47..251d19f4c 100644 --- a/BTCPayServer/Controllers/StoresController.LightningLike.cs +++ b/BTCPayServer/Controllers/StoresController.LightningLike.cs @@ -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);