From 1dcec3e1fb30d0ae1a387ceb32795bb4d2887545 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Tue, 14 May 2019 16:13:55 +0900 Subject: [PATCH] bind to all interface if inside the test container --- BTCPayServer.Tests/BTCPayServerTester.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/BTCPayServer.Tests/BTCPayServerTester.cs b/BTCPayServer.Tests/BTCPayServerTester.cs index 580c49802..2f8481146 100644 --- a/BTCPayServer.Tests/BTCPayServerTester.cs +++ b/BTCPayServer.Tests/BTCPayServerTester.cs @@ -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}");