fix: Fix HTTP/HTTPS docker proxy issues (#11258)

Refs #11254
This commit is contained in:
ssongliu
2025-12-08 09:20:38 +00:00
committed by GitHub
parent 60fef48cf0
commit be4c22012e
+1 -1
View File
@@ -694,7 +694,7 @@ func loadDockerProxy(req dto.ProxyUpdate) string {
account += "@"
}
return fmt.Sprintf("%s://%s%s:%s", req.ProxyType, account, req.ProxyUrl, req.ProxyPort)
return fmt.Sprintf("%s://%s%s:%s", req.ProxyType, account, strings.ReplaceAll(req.ProxyUrl, req.ProxyType+"://", ""), req.ProxyPort)
}
func checkProxy(req dto.ProxyUpdate) error {