From fc9b887c0b09bcb793abcbb5b0e0d9f5a9d15244 Mon Sep 17 00:00:00 2001 From: watercrossing Date: Tue, 2 Sep 2014 12:00:33 +0100 Subject: [PATCH] Add ability to specify interface --- services/web/app.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/app.coffee b/services/web/app.coffee index 854bad7931..dbf91d01de 100644 --- a/services/web/app.coffee +++ b/services/web/app.coffee @@ -35,8 +35,8 @@ if Settings.catchErrors BackgroundTasks.run() port = Settings.port or Settings.internal?.web?.port or 3000 -localInterface = Settings.interface or "0.0.0.0" -Server.server.listen port, localInterface, -> +host = Settings.internal.web.host or "localhost" +Server.server.listen port, host, -> logger.info("web-sharelatex listening on port #{port}") logger.info("#{require('http').globalAgent.maxSockets} sockets enabled") if argv.user