mirror of
https://github.com/fatedier/frp.git
synced 2026-02-09 01:59:14 +08:00
server/api: fix DeleteProxies endpoint returning empty response instead of JSON (#5163)
This commit is contained in:
@@ -254,7 +254,7 @@ func (c *Controller) DeleteProxies(ctx *httppkg.Context) (any, error) {
|
|||||||
}
|
}
|
||||||
cleared, total := mem.StatsCollector.ClearOfflineProxies()
|
cleared, total := mem.StatsCollector.ClearOfflineProxies()
|
||||||
log.Infof("cleared [%d] offline proxies, total [%d] proxies", cleared, total)
|
log.Infof("cleared [%d] offline proxies, total [%d] proxies", cleared, total)
|
||||||
return nil, nil
|
return httppkg.GeneralResponse{Code: 200, Msg: "success"}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Controller) getProxyStatsByType(proxyType string) (proxyInfos []*ProxyStatsInfo) {
|
func (c *Controller) getProxyStatsByType(proxyType string) (proxyInfos []*ProxyStatsInfo) {
|
||||||
|
|||||||
Reference in New Issue
Block a user