From 0bd8f9cd9bc8a63d849bf23e014acded8808a76b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=92=E9=87=8E=E7=84=A1=E7=87=88?= Date: Tue, 15 Jan 2019 18:06:00 +0800 Subject: [PATCH] frps dashboard api: fixup getProxyStatsByType no data return --- server/stats/internal.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/stats/internal.go b/server/stats/internal.go index 34d9c745..4b28c2c0 100644 --- a/server/stats/internal.go +++ b/server/stats/internal.go @@ -78,6 +78,10 @@ func (collector *internalCollector) Mark(statsType StatsType, payload interface{ collector.newClient(v) case *CloseClientPayload: collector.closeClient(v) + case *NewProxyPayload: + collector.newProxy(v) + case *CloseProxyPayload: + collector.closeProxy(v) case *OpenConnectionPayload: collector.openConnection(v) case *CloseConnectionPayload: