summaryrefslogtreecommitdiffstats
path: root/routers/init.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2016-12-22 20:26:43 +0800
committerThomas Boerger <thomas@webhippie.de>2016-12-22 13:26:43 +0100
commit65b1875d2bba97130f2796fe915f2a342ef7869c (patch)
tree07169fa476e103ccb10811be072d2368b9c474fe /routers/init.go
parent11df7ebfc5013ce6acc302fa7808f9c7cbe684de (diff)
downloadgitea-65b1875d2bba97130f2796fe915f2a342ef7869c.tar.gz
gitea-65b1875d2bba97130f2796fe915f2a342ef7869c.zip
New settings option for a custom SSH host (#3763) (#446)
* New settings option for a custom SSH host (#3763) * let default ssh listen addr empty
Diffstat (limited to 'routers/init.go')
-rw-r--r--routers/init.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/init.go b/routers/init.go
index 3d5235d79d..697f33835c 100644
--- a/routers/init.go
+++ b/routers/init.go
@@ -73,7 +73,7 @@ func GlobalInit() {
checkRunMode()
if setting.InstallLock && setting.SSH.StartBuiltinServer {
- ssh.Listen(setting.SSH.ListenPort)
- log.Info("SSH server started on :%v", setting.SSH.ListenPort)
+ ssh.Listen(setting.SSH.ListenHost, setting.SSH.ListenPort)
+ log.Info("SSH server started on %s:%v", setting.SSH.ListenHost, setting.SSH.ListenPort)
}
}