Merge branch 'main' into main

This commit is contained in:
6543 2023-06-06 13:20:56 +00:00
commit 34dc9610fe
2 changed files with 3 additions and 3 deletions

View file

@ -228,5 +228,5 @@ func (l *Login) GetSSHHost() string {
return ""
}
return u.Hostname()
return u.Host
}

View file

@ -90,8 +90,8 @@ func CreateLogin(name, token, user, passwd, sshKey, giteaURL, sshCertPrincipal,
}
// we do not have a method to get SSH config from api,
// so we just use the hostname
login.SSHHost = serverURL.Hostname()
// so we just use the host
login.SSHHost = serverURL.Host
if len(sshKey) == 0 {
login.SSHKey, err = findSSHKey(client)