1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-01 23:16:22 +00:00

go mod and vendor changes

This commit is contained in:
rajashree
2019-11-13 14:46:03 -08:00
committed by Alena Prokharchyk
parent 9c1c0ea999
commit 091fa14a5d
200 changed files with 12739 additions and 20 deletions

View File

@@ -193,6 +193,12 @@ func NewServerConn(c net.Conn, config *ServerConfig) (*ServerConn, <-chan NewCha
if fullConf.MaxAuthTries == 0 {
fullConf.MaxAuthTries = 6
}
// Check if the config contains any unsupported key exchanges
for _, kex := range fullConf.KeyExchanges {
if _, ok := serverForbiddenKexAlgos[kex]; ok {
return nil, nil, nil, fmt.Errorf("ssh: unsupported key exchange %s for server", kex)
}
}
s := &connection{
sshConn: sshConn{conn: c},