bind to all interface if inside the test container

This commit is contained in:
nicolas.dorier
2019-05-14 16:13:55 +09:00
parent d8e1edd6d3
commit 1dcec3e1fb

View File

@@ -102,7 +102,14 @@ namespace BTCPayServer.Tests
StringBuilder config = new StringBuilder();
config.AppendLine($"{chain.ToLowerInvariant()}=1");
config.AppendLine($"port={Port}");
if (InContainer)
{
config.AppendLine($"bind=0.0.0.0:{Port}");
}
else
{
config.AppendLine($"port={Port}");
}
config.AppendLine($"chains=btc,ltc");
config.AppendLine($"btc.explorer.url={NBXplorerUri.AbsoluteUri}");