mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 12:42:34 +02:00
fixed dashboard incorrect stats
This commit is contained in:
parent
ca3b062f89
commit
b679655cd5
1 changed files with 3 additions and 0 deletions
|
@ -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++
|
||||
|
|
Loading…
Add table
Reference in a new issue