mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-25 02:21:05 +01:00
fixed dashboard incorrect stats
This commit is contained in:
@@ -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++
|
||||
|
||||
Reference in New Issue
Block a user