1 parent
0b6530b8b6
commit
a1718effba
9 files changed
+44
-7
No files matched your search
@@ -281,7 +281,7 @@ func (w *Worker) handleProxy(listenerCfg *listenerutil.ListenerConfig, sessionMa
|
||||
event.WriteError(ctx, op, err)
|
||||
}
|
||||
|
||||
handlerOpts := []proxyHandlers.Option{proxyHandlers.WithLogger(w.logger)}
|
||||
handlerOpts := []proxyHandlers.Option{proxyHandlers.WithLogger(w.logger), proxyHandlers.WithRandomReader(w.conf.SecureRandomReader)}
|
||||
if cb := w.SshKnownHostsCallback.Load(); cb != nil {
|
||||
handlerOpts = append(handlerOpts, proxyHandlers.WithSshHostKeyCallback(*cb))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user