server/api: fix DeleteProxies endpoint returning empty response instead of JSON (#5163)

This commit is contained in:
fatedier
2026-02-06 11:22:34 +08:00
committed by GitHub
parent 9634fd99d1
commit 519368b1fd

View File

@@ -254,7 +254,7 @@ func (c *Controller) DeleteProxies(ctx *httppkg.Context) (any, error) {
}
cleared, total := mem.StatsCollector.ClearOfflineProxies()
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) {