frps dashboard api: fixup getProxyStatsByType no data return

This commit is contained in:
荒野無燈 2019-01-15 18:06:00 +08:00
parent 649a2f2457
commit 0bd8f9cd9b

View File

@ -78,6 +78,10 @@ func (collector *internalCollector) Mark(statsType StatsType, payload interface{
collector.newClient(v) collector.newClient(v)
case *CloseClientPayload: case *CloseClientPayload:
collector.closeClient(v) collector.closeClient(v)
case *NewProxyPayload:
collector.newProxy(v)
case *CloseProxyPayload:
collector.closeProxy(v)
case *OpenConnectionPayload: case *OpenConnectionPayload:
collector.openConnection(v) collector.openConnection(v)
case *CloseConnectionPayload: case *CloseConnectionPayload: