From 61099218490950e6f95afe1921fcb9db32761ccc Mon Sep 17 00:00:00 2001 From: benbierens Date: Thu, 13 Jul 2023 10:05:40 +0200 Subject: [PATCH] Enables auto-NAT option --- DistTestCore/Codex/CodexContainerRecipe.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DistTestCore/Codex/CodexContainerRecipe.cs b/DistTestCore/Codex/CodexContainerRecipe.cs index 64f2177..480503b 100644 --- a/DistTestCore/Codex/CodexContainerRecipe.cs +++ b/DistTestCore/Codex/CodexContainerRecipe.cs @@ -33,7 +33,7 @@ namespace DistTestCore.Codex AddEnvVar("CODEX_LOG_LEVEL", config.LogLevel.ToString()!.ToUpperInvariant()); // This makes the node announce itself to its local (pod) IP address. - AddEnvVar("CODEX_NAT_ADDR", "$(hostname --ip-address)"); + AddEnvVar("NAT_IP_AUTO", "true"); var listenPort = AddInternalPort(); AddEnvVar("CODEX_LISTEN_ADDRS", $"/ip4/0.0.0.0/tcp/{listenPort.Number}");