diff options
author | imilo <alexoy.v@gmail.com> | 2016-12-21 10:46:54 +0200 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2016-12-21 03:46:54 -0500 |
commit | 85fbd6e9c6e90ea998719d0d40ddfb71affd9a05 (patch) | |
tree | 7e446e4b8953393bde4e7d960eb78bc558e16953 /routers | |
parent | 2cfdce88e0b66bc6d6a52507ab682be76289aa6f (diff) |
New settings option for a custom SSH host (#3763)
Diffstat (limited to 'routers')
-rw-r--r-- | routers/install.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/install.go b/routers/install.go index e71424c6..0c621e28 100644 --- a/routers/install.go +++ b/routers/install.go @@ -92,8 +92,8 @@ 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) } } |