2
0
mirror of synced 2025-01-11 09:06:56 +00:00

Fixes initialization of geth node

This commit is contained in:
benbierens 2023-12-11 08:38:31 +01:00
parent 5dc918287c
commit ec03be6936
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ namespace CodexPlugin
{
// This makes the node announce itself to its public IP address.
AddEnvVar("NAT_IP_AUTO", "false");
AddEnvVar("NAT_PUBLIC_IP_AUTO", "https://ipinfo.io/ip");
AddEnvVar("NAT_PUBLIC_IP_AUTO", PublicIpService.Address);
}
else
{

View File

@ -56,7 +56,7 @@ namespace GethPlugin
}
if (config.IsPublicTestNet != null)
{
AddEnvVar("NAT_PUBLIC_IP_AUTO", "https://ipinfo.io/ip");
AddEnvVar("NAT_PUBLIC_IP_AUTO", PublicIpService.Address);
}
return args + $" --authrpc.port {authRpc.Number} --ws --ws.addr 0.0.0.0 --ws.port {wsPort.Number}";