From 95d671281a55f05598c44acc42f4a4b0c3c21ab1 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 29 Jan 2014 12:42:33 -0500 Subject: [PATCH] moved port 80 and 443 warnings to its own conditional --- src/webserver.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/webserver.js b/src/webserver.js index efd0c4f7bb..114faed8ff 100644 --- a/src/webserver.js +++ b/src/webserver.js @@ -193,7 +193,9 @@ module.exports.server = server; if (nconf.get('port') != 80 && nconf.get('port') != 443 && nconf.get('use_port') === true) { winston.info('Enabling \'trust proxy\''); app.enable('trust proxy'); - } else if (process.env.NODE_ENV !== 'development') { + } + + if ((nconf.get('port') == 80 || nconf.get('port') == 443) && process.env.NODE_ENV !== 'development') { winston.info('Using ports 80 and 443 is not recommend; use a proxy instead. See README.md'); }