From 519368b1fd22bd180baba3da6f4c3f46816f600b Mon Sep 17 00:00:00 2001 From: fatedier Date: Fri, 6 Feb 2026 11:22:34 +0800 Subject: [PATCH] server/api: fix DeleteProxies endpoint returning empty response instead of JSON (#5163) --- server/api/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/api/controller.go b/server/api/controller.go index 8c9827d8..861316c4 100644 --- a/server/api/controller.go +++ b/server/api/controller.go @@ -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) {