Fix s3balance config update

This commit is contained in:
DullJZ
2025-09-30 15:21:07 +08:00
parent 4a930dbfb6
commit 7c971336bd
6 changed files with 95 additions and 29 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ func (h *S3Handler) handleGetObject(w http.ResponseWriter, r *http.Request, buck
}
// 根据配置决定使用代理模式还是重定向模式
if h.proxyMode {
if h.proxyModeEnabled() {
// 代理模式:流式传输内容给客户端
resp, err := http.Get(downloadInfo.URL)
if err != nil {