diff options
author | Manuel Kuhlmann <mkuhlmann@users.noreply.github.com> | 2017-01-08 04:14:45 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-08 11:14:45 +0800 |
commit | 56614b2cbe31a2f85267615265e5638c12550ca7 (patch) | |
tree | 77150e19fc96374db53da99b3bfa6a1024ed790d | |
parent | 51d578ff3321e173b0dae4c80d3031fb0492656d (diff) | |
download | gitea-56614b2cbe31a2f85267615265e5638c12550ca7.tar.gz gitea-56614b2cbe31a2f85267615265e5638c12550ca7.zip |
Add default SSH_LISTEN_PORT config value (#603) (#607)
-rw-r--r-- | modules/setting/setting.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index aedeb55285..7b9cf43cb3 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 { |