Skip to content

Commit

Permalink
Merge pull request #1984 from gravitational/rjones/tunnel-ciphers
Browse files Browse the repository at this point in the history
Set ciphers in reversetunnel server.
  • Loading branch information
russjones authored Jun 2, 2018
2 parents bc6aa78 + 367f157 commit 2fbba6c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/reversetunnel/srv.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2fbba6c

Please sign in to comment.