fix(region): show ip out of range details error (#20083)

This commit is contained in:
屈轩
2024-04-19 18:30:26 +08:00
committed by GitHub
parent 3eb713bffe
commit ecba5d4546
+1 -1
View File
@@ -372,7 +372,7 @@ func (snet *SNetwork) getFreeIP(addrTable map[string]bool, recentUsedAddrTable m
return "", err
}
if !iprange.Contains(candIP) {
return "", httperrors.NewInputParameterError("candidate %s out of range", candidate)
return "", httperrors.NewInputParameterError("candidate %s out of range %s", candidate, iprange.String())
}
if _, ok := addrTable[candidate]; !ok {
return candidate, nil