Skip to content

Commit 7f8ef8f

Browse files
committed
Fix lint err
1 parent 68cc377 commit 7f8ef8f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,11 @@ func (cfg *RocketPoolConfig) GetExternalIp() string {
13711371
func (cfg *RocketPoolConfig) GetExternalIpv6() string {
13721372
consensusConfig := externalip.ConsensusConfig{Timeout: 3 * time.Second}
13731373
ip6Consensus := externalip.DefaultConsensus(&consensusConfig, nil)
1374-
ip6Consensus.UseIPProtocol(6)
1374+
err := ip6Consensus.UseIPProtocol(6)
1375+
if err != nil {
1376+
return ""
1377+
}
1378+
13751379
ip, err := ip6Consensus.ExternalIP()
13761380
if err != nil || ip.To4() != nil {
13771381
return ""

0 commit comments

Comments
 (0)