Browse Source

Add default SSH_LISTEN_PORT config value (#603) (#607)

tags/v1.2.0-rc1
Manuel Kuhlmann Lunny Xiao 9 years ago
parent
commit
e193cfbf84
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      modules/setting/setting.go

+ 1
- 0
modules/setting/setting.go View File

@@ -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 {


Loading…
Cancel
Save