Skip to content

Commit

Permalink
fix default value missing (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
tg123 authored Jan 22, 2024
1 parent b448f4e commit 0a38839
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/sshpiperd/internal/plugin/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 0a38839

Please sign in to comment.