更新支持配置代理地址配置

This commit is contained in:
ayflying
2025-07-11 14:07:56 +08:00
parent 12a193fdee
commit ee32c8b83d

View File

@@ -124,9 +124,9 @@ var (
FileUrl: url[v.S3], FileUrl: url[v.S3],
}) })
if err != nil { if err != nil {
Proxy := g.Cfg().MustGet(ctx, "update_proxy", "http://192.168.50.170:10808").String()
g.Log().Debugf(ctx, "切换代理进行上传:err=%v", err) g.Log().Debugf(ctx, "切换代理进行上传:err=%v", err)
get, err = client.Proxy("http://192.168.50.114:10808"). get, err = client.Proxy(Proxy).Post(ctx, address+"/callback/update", &UpdateReq{
Post(ctx, address+"/callback/update", &UpdateReq{
FileUrl: url[v.S3], FileUrl: url[v.S3],
}) })
} }