fixed dashboard incorrect stats

This commit is contained in:
yusing 2024-10-04 06:38:27 +08:00
parent ca3b062f89
commit b679655cd5

View file

@ -172,6 +172,9 @@ func (p *Provider) Statistics() ProviderStats {
numRPs := 0
numStreams := 0
p.routes.RangeAll(func(_ string, r R.Route) {
if !r.Started() {
return
}
switch r.Type() {
case R.RouteTypeReverseProxy:
numRPs++