From 367f1572d0fe647549997c9129a66e56d8973cf5 Mon Sep 17 00:00:00 2001 From: Russell Jones Date: Fri, 1 Jun 2018 21:31:46 +0000 Subject: [PATCH] Set ciphers in reversetunnel server. --- lib/reversetunnel/srv.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/reversetunnel/srv.go b/lib/reversetunnel/srv.go index 1a45d6eb84f5f..b87a65e3f656f 100644 --- a/lib/reversetunnel/srv.go +++ b/lib/reversetunnel/srv.go @@ -145,6 +145,7 @@ type Config struct { // MACAlgorithms is a list of message authentication codes (MAC) that // the server supports. If omitted the defaults will be used. MACAlgorithms []string + // DataDir is a local server data directory DataDir string // PollingPeriod specifies polling period for internal sync @@ -231,6 +232,9 @@ func NewServer(cfg Config) (Server, error) { PublicKey: srv.keyAuth, }, sshutils.SetLimiter(cfg.Limiter), + sshutils.SetCiphers(cfg.Ciphers), + sshutils.SetKEXAlgorithms(cfg.KEXAlgorithms), + sshutils.SetMACAlgorithms(cfg.MACAlgorithms), ) if err != nil { return nil, err