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

Refs #11254
This commit is contained in:
ssongliu 2025-12-08 17:20:38 +08:00 committed by GitHub
parent 60fef48cf0
commit be4c22012e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 {