Browse Source

Fix bandwidth compare (#1679)

It may cause all proxy restart when api reload.
pull/1690/head
glzjin 5 years ago committed by GitHub
parent
commit
0b9124d4fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      models/config/proxy.go

2
models/config/proxy.go

@ -149,7 +149,7 @@ func (cfg *BaseProxyConf) compare(cmp *BaseProxyConf) bool {
cfg.Group != cmp.Group || cfg.Group != cmp.Group ||
cfg.GroupKey != cmp.GroupKey || cfg.GroupKey != cmp.GroupKey ||
cfg.ProxyProtocolVersion != cmp.ProxyProtocolVersion || cfg.ProxyProtocolVersion != cmp.ProxyProtocolVersion ||
cfg.BandwidthLimit.Equal(&cmp.BandwidthLimit) || !cfg.BandwidthLimit.Equal(&cmp.BandwidthLimit) ||
!reflect.DeepEqual(cfg.Metas, cmp.Metas) { !reflect.DeepEqual(cfg.Metas, cmp.Metas) {
return false return false
} }

Loading…
Cancel
Save