aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ssh/ssh_graceful.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-03-08 02:43:59 +0000
committerGitHub <noreply@github.com>2021-03-08 03:43:59 +0100
commitc03f530212249b18ffb73dfa47c99e9a4ed7c86c (patch)
treed6fc58f469c32e796491eee02a1f9ccbfde957ae /modules/ssh/ssh_graceful.go
parent78b7529cd471eafefd555fe82b8dbb8b63dcd9f5 (diff)
downloadgitea-c03f530212249b18ffb73dfa47c99e9a4ed7c86c.tar.gz
gitea-c03f530212249b18ffb73dfa47c99e9a4ed7c86c.zip
Make internal SSH server host key path configurable (#14918)
* Make SSH server host key path configurable * make it possible to have multiple keys * Make gitea.rsa the default key * Add some more logging Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'modules/ssh/ssh_graceful.go')
-rw-r--r--modules/ssh/ssh_graceful.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ssh/ssh_graceful.go b/modules/ssh/ssh_graceful.go
index a30e6fc297..c213aa7b88 100644
--- a/modules/ssh/ssh_graceful.go
+++ b/modules/ssh/ssh_graceful.go
@@ -12,7 +12,7 @@ import (
)
func listen(server *ssh.Server) {
- gracefulServer := graceful.NewServer("tcp", server.Addr)
+ gracefulServer := graceful.NewServer("tcp", server.Addr, "SSH")
err := gracefulServer.ListenAndServe(server.Serve)
if err != nil {