mirror of
https://github.com/minio/minio.git
synced 2025-11-09 21:49:46 -05:00
fix:(replication/bandwidth) add missing validation in monitored reader (#12582)
This commit is contained in:
committed by
GitHub
parent
36110fbc77
commit
c20fbcd842
@@ -207,7 +207,7 @@ func (a adminAPIHandlers) SetRemoteTargetHandler(w http.ResponseWriter, r *http.
|
||||
}
|
||||
|
||||
// enforce minimum bandwidth limit as 100MBps
|
||||
if target.BandwidthLimit < 100*1000*1000 {
|
||||
if target.BandwidthLimit > 0 && target.BandwidthLimit < 100*1000*1000 {
|
||||
writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErrWithErr(ErrReplicationBandwidthLimitError, err), r.URL)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user