fix default value missing (#306)

This commit is contained in:
Boshi Lian 2024-01-21 23:43:02 -08:00 committed by GitHub
parent b448f4e56c
commit 0a38839628
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -319,6 +319,8 @@ func (g *GrpcPlugin) createUpstream(conn ssh.ConnMetadata, challengeCtx ssh.Chal
},
}
config.SetDefaults()
auth := make([]string, 0)
if upstream.GetNone() != nil {
config.Auth = append(config.Auth, ssh.NoneAuth())