Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
awskii committed Jan 17, 2025
1 parent edcca44 commit 0077d85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cl/sentinel/sentinel.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ func (s *Sentinel) createListener() (*discover.UDPv5, error) {
return nil, fmt.Errorf("bad ip address provided, %s was provided", ipAddr)
}

bindIP, networkVersion := net.IPv4(127, 0, 0, 1), "udp4"
var bindIP net.IP
var networkVersion string
// If the IP is an IPv4 address, bind to the correct zero address.
if ip.To4() != nil {
bindIP, networkVersion = ip.To4(), "udp4"
Expand Down

0 comments on commit 0077d85

Please sign in to comment.