Skip to content

Commit 56614b2

Browse files
mkuhlmannlunny
authored andcommitted
Add default SSH_LISTEN_PORT config value (#603) (#607)
1 parent 51d578f commit 56614b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/setting/setting.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,7 @@ please consider changing to GITEA_CUSTOM`)
578578

579579
SSH.KeygenPath = sec.Key("SSH_KEYGEN_PATH").MustString("ssh-keygen")
580580
SSH.Port = sec.Key("SSH_PORT").MustInt(22)
581+
SSH.ListenPort = sec.Key("SSH_LISTEN_PORT").MustInt(SSH.Port)
581582

582583
// When disable SSH, start builtin server value is ignored.
583584
if SSH.Disabled {

0 commit comments

Comments
 (0)