diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2016-12-22 20:26:43 +0800 |
---|---|---|
committer | Thomas Boerger <thomas@webhippie.de> | 2016-12-22 13:26:43 +0100 |
commit | 65b1875d2bba97130f2796fe915f2a342ef7869c (patch) | |
tree | 07169fa476e103ccb10811be072d2368b9c474fe /routers/init.go | |
parent | 11df7ebfc5013ce6acc302fa7808f9c7cbe684de (diff) | |
download | gitea-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.go | 4 |
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) } } |