From 3798e351aa48bd4d083d7cb6a4208bd89c6ff78a Mon Sep 17 00:00:00 2001 From: Manuel Kuhlmann Date: Sat, 7 Jan 2017 19:06:33 +0100 Subject: [PATCH] Add default SSH_LISTEN_PORT config value (#603) --- modules/setting/setting.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 9a8a52e1955f1..8a03dd94f3ba6 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -578,6 +578,7 @@ please consider changing to GITEA_CUSTOM`) SSH.KeygenPath = sec.Key("SSH_KEYGEN_PATH").MustString("ssh-keygen") SSH.Port = sec.Key("SSH_PORT").MustInt(22) + SSH.ListenPort = sec.Key("SSH_LISTEN_PORT").MustInt(SSH.Port) // When disable SSH, start builtin server value is ignored. if SSH.Disabled {