diff --git a/web/service/inbound.go b/web/service/inbound.go index b24e0beb..c4a303b1 100644 --- a/web/service/inbound.go +++ b/web/service/inbound.go @@ -777,7 +777,7 @@ func (s *InboundService) DelInboundClient(inboundId int, clientId string) (bool, } } - s.syncWithSlaves(http.MethodPost, "panel/inbounds/api", "application/x-www-form-urlencoded", nil, nil, strconv.Itoa(inboundId), "delClient", clientId) + s.syncWithSlaves(http.MethodPost, "panel/api/inbounds", "application/x-www-form-urlencoded", nil, nil, strconv.Itoa(inboundId), "delClient", clientId) return needRestart, db.Save(oldInbound).Error } @@ -2519,7 +2519,7 @@ func (s *InboundService) syncWithSlaves(method string, path string, contentType if resp.StatusCode != http.StatusOK { bodyBytes, _ := io.ReadAll(resp.Body) - logger.Warningf("Failed to sync with server %s. Status: %s, Body: %s", server.Name, resp.Status, string(bodyBytes), resp) + logger.Warningf("Failed to sync with server %s. Status: %s, Body: %s", server.Name, resp.Status, string(bodyBytes)) } //logger.Infof("Synced inbound %v to server %v (%v)", bodyData.(*model.Inbound).Tag, server.Name, resp.Status) } diff --git a/web/service/multi_server_service.go b/web/service/multi_server_service.go index bef52255..7cb38527 100644 --- a/web/service/multi_server_service.go +++ b/web/service/multi_server_service.go @@ -34,7 +34,7 @@ func (s *MultiServerService) GetOnlineClients() (map[int][]string, error) { return nil, err } - var clients map[int][]string + clients := make( map[int][]string) for _, server := range servers { var onlineResp struct { Success bool `json:"success"`