Skip to content

Commit ec9c7ce

Browse files
committed
fix: Fix HTTP/HTTPS docker proxy issues
1 parent 7f9f4ae commit ec9c7ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/app/service/setting.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ func loadDockerProxy(req dto.ProxyUpdate) string {
694694
account += "@"
695695
}
696696

697-
return fmt.Sprintf("%s://%s%s:%s", req.ProxyType, account, req.ProxyUrl, req.ProxyPort)
697+
return fmt.Sprintf("%s://%s%s:%s", req.ProxyType, account, strings.ReplaceAll(req.ProxyUrl, req.ProxyType+"://", ""), req.ProxyPort)
698698
}
699699

700700
func checkProxy(req dto.ProxyUpdate) error {

0 commit comments

Comments
 (0)