summaryrefslogtreecommitdiffstats
path: root/routers/init.go
diff options
context:
space:
mode:
authorCum Gun <cumgun@users.noreply.github.com>2017-11-02 16:26:41 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2017-11-02 23:26:41 +0800
commiteecaba20310483f64e0e4500fa3ac85e23ced18e (patch)
tree42a1525202072337feda5795596d27db9f89690d /routers/init.go
parentd94e2a1c22ae18e8439aa4ebd49884c70095619b (diff)
downloadgitea-eecaba20310483f64e0e4500fa3ac85e23ced18e.tar.gz
gitea-eecaba20310483f64e0e4500fa3ac85e23ced18e.zip
Configurable SSH key exchange algorithm and MAC suite (#2806)
Diffstat (limited to 'routers/init.go')
-rw-r--r--routers/init.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/init.go b/routers/init.go
index d0d455ea57..18a6d03d08 100644
--- a/routers/init.go
+++ b/routers/init.go
@@ -81,7 +81,7 @@ func GlobalInit() {
checkRunMode()
if setting.InstallLock && setting.SSH.StartBuiltinServer {
- ssh.Listen(setting.SSH.ListenHost, setting.SSH.ListenPort, setting.SSH.ServerCiphers)
- log.Info("SSH server started on %s:%d. Cipher list (%v)", setting.SSH.ListenHost, setting.SSH.ListenPort, setting.SSH.ServerCiphers)
+ ssh.Listen(setting.SSH.ListenHost, setting.SSH.ListenPort, setting.SSH.ServerCiphers, setting.SSH.ServerKeyExchanges, setting.SSH.ServerMACs)
+ log.Info("SSH server started on %s:%d. Cipher list (%v), key exchange algorithms (%v), MACs (%v)", setting.SSH.ListenHost, setting.SSH.ListenPort, setting.SSH.ServerCiphers, setting.SSH.ServerKeyExchanges, setting.SSH.ServerMACs)
}
}