Fixing success message for DNS

This commit is contained in:
nicolas.dorier 2018-08-13 17:04:37 +09:00
parent 522abcfdfd
commit 1685ccaca8
2 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<Version>1.0.2.92</Version>
<Version>1.0.2.93</Version>
<NoWarn>NU1701,CA1816,CA1308,CA1810,CA2208</NoWarn>
</PropertyGroup>
<ItemGroup>

View File

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