summaryrefslogtreecommitdiffstats
path: root/routers/install.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-02-25 00:21:48 -0500
committerUnknwon <u@gogs.io>2016-02-25 00:21:48 -0500
commit4438b7793b143c71675b0ae954036830b7afd2b7 (patch)
treedc3dead31ecc9ee05153901ac4825ab8ed14b00b /routers/install.go
parentbaaf6046a1b0b81b91c76ecc259a13f9eb1c5cdb (diff)
downloadgitea-4438b7793b143c71675b0ae954036830b7afd2b7.tar.gz
gitea-4438b7793b143c71675b0ae954036830b7afd2b7.zip
Add new config option for builtin SSH server
Config option [server] SSH_LISTEN_PORT to the port the builtin SSH server will be listen. It can be different from SSH_PORT which is supposed to be exposed in the clone URL. This should solve the problem when user runs Gogs inside Docker container and still want to use builtin SSH server.
Diffstat (limited to 'routers/install.go')
-rw-r--r--routers/install.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/install.go b/routers/install.go
index c65f26296a..b2c1d6ea01 100644
--- a/routers/install.go
+++ b/routers/install.go
@@ -89,8 +89,8 @@ func GlobalInit() {
checkRunMode()
if setting.StartSSHServer {
- ssh.Listen(setting.SSHPort)
- log.Info("SSH server started on :%v", setting.SSHPort)
+ ssh.Listen(setting.SSHListenPort)
+ log.Info("SSH server started on :%v", setting.SSHListenPort)
}
// Build Sanitizer