mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-20 14:41:47 +00:00
Use proper Host configuration for SSH
This removes the usage of Hostname() which does not honor configured SSH port to be used. Resolves: #1377 See also: #1101, #1102 Signed-off-by: Tobias Jakobsson <jakobsson.tobias@gmail.com>
This commit is contained in:
parent
d27c2164b2
commit
ea62cb5fc9
1 changed files with 0 additions and 1 deletions
|
|
@ -173,7 +173,6 @@ func bootstrapGitCmdRun(cmd *cobra.Command, args []string) error {
|
||||||
// Configure repository URL to match auth config for sync.
|
// Configure repository URL to match auth config for sync.
|
||||||
repositoryURL.User = url.User(gitArgs.username)
|
repositoryURL.User = url.User(gitArgs.username)
|
||||||
repositoryURL.Scheme = "ssh"
|
repositoryURL.Scheme = "ssh"
|
||||||
repositoryURL.Host = repositoryURL.Hostname()
|
|
||||||
if bootstrapArgs.sshHostname != "" {
|
if bootstrapArgs.sshHostname != "" {
|
||||||
repositoryURL.Host = bootstrapArgs.sshHostname
|
repositoryURL.Host = bootstrapArgs.sshHostname
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue