Skip to content

Commit

Permalink
Updated ipHash to calculate over the actual IP
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnus Appelquist committed Dec 9, 2021
1 parent 70bff79 commit e44c092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prober/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,6 @@ func chooseProtocol(ctx context.Context, IPProtocol string, fallbackIPProtocol b

func ipHash(ip net.IP) float64 {
h := fnv.New32a()
h.Write(ip)
h.Write([]byte(ip.String()))
return float64(h.Sum32())
}

0 comments on commit e44c092

Please sign in to comment.