summaryrefslogtreecommitdiffstats
path: root/routers/install.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-08 16:59:56 -0500
committerUnknwon <u@gogs.io>2015-11-08 16:59:56 -0500
commit18c841050b4c843ef723e788d4c0a4c29c67ffe3 (patch)
tree05fa3bde8473045add17f4efe9a0ba141b178bf7 /routers/install.go
parentb55499d039c5e35130057b8af16401c558e79e79 (diff)
downloadgitea-18c841050b4c843ef723e788d4c0a4c29c67ffe3.tar.gz
gitea-18c841050b4c843ef723e788d4c0a4c29c67ffe3.zip
fix 1540 and experimental SSH server support
Diffstat (limited to 'routers/install.go')
-rw-r--r--routers/install.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/routers/install.go b/routers/install.go
index 6fa7c12a13..5240b88e33 100644
--- a/routers/install.go
+++ b/routers/install.go
@@ -25,6 +25,7 @@ import (
"github.com/gogits/gogs/modules/mailer"
"github.com/gogits/gogs/modules/middleware"
"github.com/gogits/gogs/modules/setting"
+ "github.com/gogits/gogs/modules/ssh"
"github.com/gogits/gogs/modules/user"
)
@@ -76,6 +77,11 @@ func GlobalInit() {
log.Info("TiDB Supported")
}
checkRunMode()
+
+ if setting.StartSSHServer {
+ ssh.Listen(setting.SSHPort)
+ log.Info("SSH server started on :%v", setting.SSHPort)
+ }
}
func InstallInit(ctx *middleware.Context) {