fix: Fix HTTP/HTTPS docker proxy issues

This commit is contained in:
ssongliu 2025-12-08 17:12:11 +08:00
parent 7f9f4ae740
commit ec9c7cefa3

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 {