Skip to content

Commit

Permalink
fix condition on max port (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
stlava authored Apr 2, 2024
1 parent df42293 commit d865d6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rediscluster/redisclusterutil/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func ParseSlotsInfo(res interface{}) ([]SlotsRange, error) {
}
host, ok := rawaddr[0].([]byte)
port, ok2 := rawaddr[1].(int64)
if !ok || !ok2 || port <= 0 || port+10000 > 65535 {
if !ok || !ok2 || port <= 0 || port > 65535 {
return errf("address format mismatch: res[%d][%d] = %+v",
i, j, rawaddr)
}
Expand Down

0 comments on commit d865d6d

Please sign in to comment.