aboutsummaryrefslogtreecommitdiff
path: root/internal/route/install.go
diff options
context:
space:
mode:
authorEduardo Bacchi Kienetz <eduardo@kienetz.com>2020-12-04 08:52:26 -0500
committerGitHub <noreply@github.com>2020-12-04 21:52:26 +0800
commitc875950c438b1ccbb546fecb4905680a0cbd38a7 (patch)
tree2fc428574c9471d067f8da8f535cbd30623cd0ea /internal/route/install.go
parent71eeb2f0c04019c891648316a0aac29cff109bf0 (diff)
ssh: allow setting allowed MAC algorithms for built-in server (#6435)
Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
Diffstat (limited to 'internal/route/install.go')
-rw-r--r--internal/route/install.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/route/install.go b/internal/route/install.go
index 9a8f2e39..86462a8a 100644
--- a/internal/route/install.go
+++ b/internal/route/install.go
@@ -98,9 +98,10 @@ func GlobalInit(customConf string) error {
}
if conf.SSH.StartBuiltinServer {
- ssh.Listen(conf.SSH.ListenHost, conf.SSH.ListenPort, conf.SSH.ServerCiphers)
+ ssh.Listen(conf.SSH.ListenHost, conf.SSH.ListenPort, conf.SSH.ServerCiphers, conf.SSH.ServerMACs)
log.Info("SSH server started on %s:%v", conf.SSH.ListenHost, conf.SSH.ListenPort)
log.Trace("SSH server cipher list: %v", conf.SSH.ServerCiphers)
+ log.Trace("SSH server MAC list: %v", conf.SSH.ServerMACs)
}
if conf.SSH.RewriteAuthorizedKeysAtStart {