mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-11 12:56:10 +08:00
fix: Fix HTTP/HTTPS docker proxy issues
This commit is contained in:
parent
7f9f4ae740
commit
ec9c7cefa3
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue