Updates public ip to point to service

This commit is contained in:
benbierens 2023-11-20 11:19:10 +01:00
parent 005c9b4259
commit 8b224f6922
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
1 changed files with 1 additions and 2 deletions

View File

@ -49,13 +49,12 @@ namespace CodexPlugin
{
// This makes the node announce itself to its public IP address.
AddEnvVar("NAT_IP_AUTO", "false");
AddEnvVar("NAT_PUBLIC_IP_AUTO", "true");
AddEnvVar("NAT_PUBLIC_IP_AUTO", "https://ipinfo.io/ip");
}
else
{
// This makes the node announce itself to its local (pod) IP address.
AddEnvVar("NAT_IP_AUTO", "true");
AddEnvVar("NAT_PUBLIC_IP_AUTO", "false");
}
var listenPort = CreateListenPort(config);