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'); }