fix report api

This commit is contained in:
Yuzuki 2022-12-21 03:49:34 +08:00 committed by GitHub
parent 182fa7ade2
commit a3717c1e63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,7 @@ func (c *Client) ReportUserTraffic(userTraffic []UserTraffic) error {
for i := range userTraffic {
data[userTraffic[i].UID] = []int64{userTraffic[i].Upload, userTraffic[i].Download}
}
const path = "/api/v1/server/UniProxy/user"
const path = "/api/v1/server/UniProxy/push"
res, err := c.client.R().
SetBody(userTraffic).
ForceContentType("application/json").