From 65b1875d2bba97130f2796fe915f2a342ef7869c Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 22 Dec 2016 20:26:43 +0800 Subject: 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 --- routers/init.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'routers') 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) } } -- cgit v1.2.3