1
0
mirror of synced 2026-02-13 13:06:56 +00:00

Use Host from parsed URL instead of Hostname

Regression bug introduced in #1001.

Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
Hidde Beydals
2021-03-16 13:47:53 +01:00
parent b4dbb178fe
commit dc6b0d0f0d
4 changed files with 4 additions and 4 deletions

View File

@@ -129,7 +129,7 @@ func createSecretGitCmdRun(cmd *cobra.Command, args []string) error {
}
switch u.Scheme {
case "ssh":
opts.SSHHostname = u.Hostname()
opts.SSHHostname = u.Host
opts.PrivateKeyAlgorithm = sourcesecret.PrivateKeyAlgorithm(secretGitArgs.keyAlgorithm)
opts.RSAKeyBits = int(secretGitArgs.rsaBits)
opts.ECDSACurve = secretGitArgs.ecdsaCurve.Curve