From 7f43fd4843d6d19ea05f6497e9351798a7570d58 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Sun, 30 Nov 2014 15:36:39 -0500 Subject: [PATCH] bugfix #1984 --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 5d83a4ad55..de6b9a71fb 100644 --- a/app.js +++ b/app.js @@ -115,7 +115,7 @@ function start() { var urlObject = url.parse(nconf.get('url')); nconf.set('use_port', !!urlObject.port); nconf.set('relative_path', urlObject.pathname !== '/' ? urlObject.pathname : ''); - nconf.set('port', nconf.get('port') || nconf.get('PORT') || 4567); + nconf.set('port', urlObject.port || nconf.get('port') || nconf.get('PORT') || 4567); if (!cluster.isWorker || process.env.cluster_setup === 'true') { winston.info('Time: %s', (new Date()).toString());