Skip to content

Commit 68cc377

Browse files
committed
Restore accidentally deleted comment
1 parent d0e7146 commit 68cc377

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ 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
148149
consensusConfig := externalip.ConsensusConfig{Timeout: 3 * time.Second}
149150
ip4Consensus := externalip.DefaultConsensus(&consensusConfig, nil)
150151
err := ip4Consensus.UseIPProtocol(4)

shared/services/connectivity/check-port-connectivity.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,7 @@ func getPublicIP() (string, error) {
181181
// isPortReachableNATReflection attempts a TCP connection to host:port and returns true if
182182
// the connection succeeds within portCheckTimeout.
183183
func isPortReachableNATReflection(host string, port uint16) bool {
184-
<<<<<<< HEAD
185184
address := net.JoinHostPort(host, strconv.FormatUint(uint64(port), 10))
186-
=======
187-
address := net.JoinHostPort(host, fmt.Sprintf("%d", port))
188-
>>>>>>> 892137d9a (Use JoinHostPort)
189185
conn, err := net.DialTimeout("tcp", address, portCheckTimeout)
190186
if err != nil {
191187
return false

0 commit comments

Comments
 (0)