mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-24 16:00:53 +00:00
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user