diff --git a/core/app/service/setting.go b/core/app/service/setting.go index b1e4c819f..2555066c2 100644 --- a/core/app/service/setting.go +++ b/core/app/service/setting.go @@ -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 {