diff options
Diffstat (limited to 'modules/setting')
-rw-r--r-- | modules/setting/setting.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index f3d4349be9..2b1b553126 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -70,6 +70,7 @@ var ( StartSSHServer bool SSHDomain string SSHPort int + SSHListenPort int SSHRootPath string SSHPublicKeyCheck string SSHWorkPath string @@ -332,6 +333,7 @@ func NewContext() { } SSHDomain = sec.Key("SSH_DOMAIN").MustString(Domain) SSHPort = sec.Key("SSH_PORT").MustInt(22) + SSHListenPort = sec.Key("SSH_LISTEN_PORT").MustInt(SSHPort) SSHRootPath = sec.Key("SSH_ROOT_PATH").MustString(path.Join(homeDir, ".ssh")) if err := os.MkdirAll(SSHRootPath, 0700); err != nil { log.Fatal(4, "Fail to create '%s': %v", SSHRootPath, err) |