orchard controller run: introduce --insecure-ssh-no-client-auth (#187)

This commit is contained in:
Nikolay Edigaryev
2024-06-28 23:55:18 +04:00
committed by GitHub
parent ff0497b1d8
commit 8119b22817
5 changed files with 15 additions and 7 deletions
+2 -1
View File
@@ -27,10 +27,11 @@ func WithTLSConfig(tlsConfig *tls.Config) Option {
}
}
func WithSSHServer(listenAddr string, signer ssh.Signer) Option {
func WithSSHServer(listenAddr string, signer ssh.Signer, noClientAuth bool) Option {
return func(controller *Controller) {
controller.sshListenAddr = listenAddr
controller.sshSigner = signer
controller.sshNoClientAuth = noClientAuth
}
}