mirror of
https://gitea.com/gitea/tea.git
synced 2024-06-03 10:11:22 +05:30
Merge branch 'main' into main
This commit is contained in:
commit
34dc9610fe
|
@ -228,5 +228,5 @@ func (l *Login) GetSSHHost() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
return u.Hostname()
|
||||
return u.Host
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue