Enables auto-NAT option

This commit is contained in:
benbierens 2023-07-13 10:05:40 +02:00
parent 1f8fc52cb1
commit 6109921849
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ namespace DistTestCore.Codex
AddEnvVar("CODEX_LOG_LEVEL", config.LogLevel.ToString()!.ToUpperInvariant()); AddEnvVar("CODEX_LOG_LEVEL", config.LogLevel.ToString()!.ToUpperInvariant());
// This makes the node announce itself to its local (pod) IP address. // 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(); var listenPort = AddInternalPort();
AddEnvVar("CODEX_LISTEN_ADDRS", $"/ip4/0.0.0.0/tcp/{listenPort.Number}"); AddEnvVar("CODEX_LISTEN_ADDRS", $"/ip4/0.0.0.0/tcp/{listenPort.Number}");