From 1685ccaca8ed2c4d62d5902fb1781952bc468c22 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Mon, 13 Aug 2018 17:04:37 +0900 Subject: [PATCH] Fixing success message for DNS --- BTCPayServer/BTCPayServer.csproj | 2 +- BTCPayServer/Controllers/ServerController.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/BTCPayServer/BTCPayServer.csproj b/BTCPayServer/BTCPayServer.csproj index 8295b8ced..e2b732c20 100644 --- a/BTCPayServer/BTCPayServer.csproj +++ b/BTCPayServer/BTCPayServer.csproj @@ -2,7 +2,7 @@ Exe netcoreapp2.1 - 1.0.2.92 + 1.0.2.93 NU1701,CA1816,CA1308,CA1810,CA2208 diff --git a/BTCPayServer/Controllers/ServerController.cs b/BTCPayServer/Controllers/ServerController.cs index 840475788..dfd8af432 100644 --- a/BTCPayServer/Controllers/ServerController.cs +++ b/BTCPayServer/Controllers/ServerController.cs @@ -200,6 +200,8 @@ namespace BTCPayServer.Controllers { try { + builder.Scheme = this.Request.Scheme; + builder.Host = vm.DNSDomain; var addresses1 = Dns.GetHostAddressesAsync(this.Request.Host.Host); var addresses2 = Dns.GetHostAddressesAsync(vm.DNSDomain); await Task.WhenAll(addresses1, addresses2);