Skip to content

Commit 4b35a9b

Browse files
committed
Update warning for IPv6 hosts who have IPv6 disabled in config. Update IPv6 setting description
1 parent 42b13bc commit 4b35a9b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

shared/services/config/rocket-pool-config.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ type RocketPoolConfig struct {
145145
// * Improve peer discovery and node performance
146146
// * Avoid unnecessary container restarts caused by switching between IPv4 and IPv6
147147
func getExternalIP() (net.IP, error) {
148-
// Try IPv4 first
149148
consensusConfig := externalip.ConsensusConfig{Timeout: 3 * time.Second}
150149
ip4Consensus := externalip.DefaultConsensus(&consensusConfig, nil)
151150
err := ip4Consensus.UseIPProtocol(4)
@@ -358,7 +357,7 @@ func NewRocketPoolConfig(rpDir string, isNativeMode bool) *RocketPoolConfig {
358357
EnableIPv6: config.Parameter{
359358
ID: "enableIPv6",
360359
Name: "Enable IPv6",
361-
Description: "Enable IPv6 support for the Docker network used by the Smart Node. Enable this if your machine only has an IPv6 address, or if you want your Ethereum clients to communicate over IPv6.",
360+
Description: "Enables dual-stack (IPv4 + IPv6) networking for the Smart Node. When enabled, your Ethereum clients will listen on both IPv4 and IPv6 and can peer with IPv6 nodes in addition to IPv4. Enable this if your machine has only an IPv6 address, or if you want your node to participate in IPv6 peering.",
362361
Type: config.ParameterType_Bool,
363362
Default: map[config.Network]interface{}{config.Network_All: false},
364363
AffectsContainers: []config.ContainerID{config.ContainerID_Api, config.ContainerID_Node, config.ContainerID_Watchtower, config.ContainerID_Eth1, config.ContainerID_Eth2, config.ContainerID_Validator, config.ContainerID_Grafana, config.ContainerID_Prometheus, config.ContainerID_Alertmanager, config.ContainerID_Exporter, config.ContainerID_MevBoost, config.ContainerID_CommitBoost},
@@ -1359,7 +1358,7 @@ func (cfg *RocketPoolConfig) GetExternalIp() string {
13591358
}
13601359

13611360
if ip.To4() == nil && !cfg.IsIPv6Enabled() {
1362-
fmt.Println("Warning: external IP address is v6; if you're using Nimbus or Besu, it may have trouble finding peers:")
1361+
fmt.Println("Warning: your external IP address is IPv6. If you haven't enabled IPv6 support in your configuration, your node may have trouble finding peers. Run 'rocketpool service config' and enable IPv6 under 'Smart Node and TX Fees'.")
13631362
}
13641363

13651364
return ip.String()

0 commit comments

Comments
 (0)