fix: 更新时也要判断limit是不是0

This commit is contained in:
qcqcqc@wsl 2026-01-09 17:16:17 +08:00
parent ec76429d50
commit 80d5ba8a23
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ type Forwarder struct {
}
func (f *Forwarder) UpdateBandwidthLimit(limit *int64) {
if limit == nil {
if limit == nil || *limit == 0 {
f.limiterOut = nil
f.limiterIn = nil
f.limit = nil